html 4 name=name
Ralf Schlatterbeck <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi John, hallo List:
There is a recent change made to replace html attributes like
'required="required"' with the html-4 equivalent of 'required' only.
The code is in html4_cgi_escape_attrs in cgi/templating.py
I now have the following html generated for an edit mask:
<tr>
...
<td><input name size="23" type="text" value=""></td>
</tr>
As you can see the previous 'name="name"' in the input tag is now
replaced with 'name' only. The effect in the browser is that I cannot
submit the field any longer (it ends up empty when passed to the
server). Note that the field to be edited in this case *has* the name
"name".
My HTML header is (I didn't change anything in my templates here):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
Now my question: Is this expected to work with HTML 4 or is this a bug?
Should we have an explicit list of attribute names that use the short
form? Or a blacklist?
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: http://www.runtux.com
Reichergasse 131, A-3411 Weidling email: [email protected]