ID:               20744
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Session related
 Operating System: All
 PHP Version:      4.2.3
 New Comment:

I'm not sure this should even be fixed.

It's a clear flaw in the XHTML 1.1 spec, as an input element with type
'hidden', has no layout impact whatsoever, and as such it should not be
burdoned with the rules that apply to an inline element.



Previous Comments:
------------------------------------------------------------------------

[2002-12-01 06:37:29] [EMAIL PROTECTED]

I constructed a test site to show my point:
http://www.wopr.dk/misc/formproblem.php

If you click at the "W3C XHTML 1.1" picture you will see that the site
contains one error:
"document type does not allow element 'input' here"

The input element the validator refers to is this one:
<input type="hidden" name="PHPSESSID"
value="d509686534734e1c5b1ac66ef2a54c2e" />

The problem is that according to the XHTML standard all input elements
should be contained inside a block level element (like in my case a div
element). The session engine in PHP puts the session ID tag just after
the opening form element.

Instead it should look for the first input, textarea etc. element
inside the form and put the hidden session input element just before
that.

Of cause action also has to be taken if no such element is contained
inside the form.

Look at this link for another description of the problem (not PHP
related):
http://lists.w3.org/Archives/Public/www-validator/2001Sep/0114.html

/watson


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20744&edit=1

Reply via email to