|
[ tidy-Bugs-1207443 ] XHTML output doesn't conform to the DTD: msg#00043web.html-tidy.tracker
Bugs item #1207443, was opened at 2005-05-24 10:46 Message generated for change (Comment added) made by eminence_tech You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1207443&group_id=27659 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Pretty Printer Group: Current - all platforms Status: Open Resolution: None Priority: 6 Submitted By: eminence (eminence_tech) Assigned to: Nobody/Anonymous (nobody) Summary: XHTML output doesn't conform to the DTD Initial Comment: Tidy does not generate XHML that conforms to the DTD. A test case with several form elements has been attached. According to the DTD that is referenced by the XHTML generated by tidy, (http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd), the type in the form elements should be in lower case. I.e. <input type="TEXT" align="left" /> <input type="RADIO" /> <input type="CHECKBOX" /> should actually be <input type="text" align="left" /> <input type="radio" /> <input type="checkbox" /> to conform to the DTD. The full list of input types is included below from the DTD. <!ENTITY % InputType "(text | password | checkbox | radio | submit | reset | file | hidden | image | button)" > Version of tidy use: CVS 2005-05-24: tidy -v: HTML Tidy for Linux/x86 released on 1 May 2005 Tidy was invoked as follows with the test file that has been included: tidy -ascii -asxhtml form_test.htm ---------------------------------------------------------------------- >Comment By: eminence (eminence_tech) Date: 2005-08-17 12:08 Message: Logged In: YES user_id=1199944 > Under HTML 4, the interpretation of these values was case-insensitive, > so a value of TEXT was equivalent to a value of text. Under XML, the > interpretation of these values is case-sensitive, and in XHTML 1 all of > these values are defined in lower-case. Based on this information, couldn't we just convert these values to lower case then? That way XHTML will be happy, and HTML 4 is case-insensitive so it won't mind. ---------------------------------------------------------------------- Comment By: Björn Höhrmann (hoehrmann) Date: 2005-08-16 23:29 Message: Logged In: YES user_id=188003 This is a duplicate of some other "bug" (probably a feature request). Not sure which one though. ---------------------------------------------------------------------- Comment By: Jeroen Ruigrok/Asmodai (asmodai) Date: 2005-08-16 23:03 Message: Logged In: YES user_id=9486 This is correct, see: http://www.w3.org/TR/xhtml1/ - Section 4.11 - Attributes with pre-defined value sets HTML 4 and XHTML both have some attributes that have pre-defined and limited sets of values (e.g. the type attribute of the input element). In SGML and XML, these are called enumerated attributes. Under HTML 4, the interpretation of these values was case-insensitive, so a value of TEXT was equivalent to a value of text. Under XML, the interpretation of these values is case-sensitive, and in XHTML 1 all of these values are defined in lower-case. This bug is still present in the version of 2005-07-22. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1207443&group_id=27659 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ tidy-Bugs-1260877 ] colspan incorrectly marked as proprietary: 00043, SourceForge.net |
|---|---|
| Next by Date: | [ tidy-Patches-1261741 ] Fix win32 dll build: 00043, SourceForge.net |
| Previous by Thread: | [ tidy-Bugs-1207443 ] XHTML output doesn't conform to the DTDi: 00043, SourceForge.net |
| Next by Thread: | [ tidy-Bugs-1207443 ] XHTML output doesn't conform to the DTD: 00043, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |