#28316 [Opn->Bgs]: use_trans_id causes invalid XHTML strict output
| From: | magnus@php.net | Date: | Sun, 09 May 2004 16:04:13 +0000 |
| Subject: | #28316 [Opn->Bgs]: use_trans_id causes invalid XHTML strict output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59427@lists.php.net to get a copy of this message | ||
ID: 28316
Updated by: magnus@php.net
Reported By: nano at spamcop dot net
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Remove form from url_rewrite.tags and put the correct information where
you want it yourself.
Previous Comments:
------------------------------------------------------------------------
[2004-05-07 16:33:45] nano at spamcop dot net
Description:
------------
When use_trans_sid=on, this will add a hidden field (<input>) right
after the form element start tag (<form>).
Problem is that the XHTML Strict DTD forbids inline
elements in the <form> element if they are not enclosed themselves in
whatever block elements allowed in <form>, such as <fieldset>, <p>,
<div>, etc.
Reproduce code:
---------------
(This is only for illustration purpose).
<form enctype="..." method="..." action="...">
<fieldset>
<legend>Test</legend>
<input accesskey="..." type="text" name="..." />
<input accesskey="2" type="submit" name="test" value="OK"
/>
</fieldset>
</form>
Expected result:
----------------
(Feature request: the session info should not be added after <form>
start tag, but right after first <input> tag, like below in between
brackets [ ]).
<form enctype="..." method="..." action="...">
<fieldset>
<legend>Test</legend>
<input accesskey="..." type="text" name="..." />
[<input type="hidden" name="PHPSESSID" value="..." />]
<input accesskey="2" type="submit" name="test" value="OK"
/>
</fieldset>
</form>
Actual result:
--------------
(This to illustrate the fact that an <input> element (type inline) is
not directly allowed in a <form> element by XHTML Strict DTD, although
it is permitted by XHTML Transitional DTD).
<form enctype="..." method="..." action="...">[<input
type="hidden"
name="PHPSESSID" value="..." />]
<fieldset>
<legend>Test</legend>
<input accesskey="..." type="text" name="..." />
<input accesskey="2" type="submit" name="test" value="OK"
/>
</fieldset>
</form>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28316&edit=1