cgi module does not work fully with XHTML 1.0 Strict DTD

M. Kirchhoff moai at 0ubliette.org
Wed Jun 4 11:57:49 EDT 2003


It seems that the FieldStorage() method of the cgi module collects only form
<select> items using the "name" attribute (for example, <select name="item1"> ).

With the newer XHTML 1.0 Strict DTD, "name" is deprecated and has been replaced
with "id" (for example <select id="item1"> ).  The method does seem to work with
XHTML 1.0 Transitional, as this allows for the use of the "name" and "id"
attributes simultaneously.

Does anyone have any information or resources regarding this situation?

Thanks!

(M)





More information about the Python-list mailing list