Opened at 2009-11-01T03:20:09Z
Last modified at 2021-03-30T18:40:19Z
#824 assigned defect
WUI pages lack correct XHTML 1.0 Transitional declarations — at Version 5
Reported by: | davidsarah | Owned by: | daira |
---|---|---|---|
Priority: | normal | Milestone: | soon |
Component: | code-frontend-web | Version: | 1.5.0 |
Keywords: | standards html | Cc: | |
Launchpad Bug: |
Description (last modified by daira)
Results of running the W3C online validator on the root directory of the testgrid:
If I override the doctype to be "XHTML 1.0 Transitional", it fares much better:
So every XHTML document should start with
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
There is also a minor error on the Welcome page:
where I think the validator is wanting id="mutable" instead of, or in addition to name="mutable".
Change History (5)
comment:1 Changed at 2009-11-01T03:26:51Z by davidsarah
- Summary changed from WUI directory pages lack correct XHTML 1.0 Transitional declarations to WUI pages lack correct XHTML 1.0 Transitional declarations
comment:2 Changed at 2009-11-01T03:30:50Z by davidsarah
Incidentally, I recommend using a UTF-8 BOM to declare that the charset is UTF-8, rather than a <meta> tag. It works just as well in all browsers, and avoids the ugliness of the browser not knowing the charset until it sees the meta tag.
comment:3 Changed at 2010-02-01T19:53:19Z by davidsarah
- Milestone changed from undecided to 1.7.0
comment:4 Changed at 2010-06-18T23:39:25Z by zooko
- Milestone changed from 1.7.0 to eventually
comment:5 Changed at 2015-02-09T02:19:32Z by daira
- Description modified (diff)
- Milestone changed from eventually to 1.12.0
- Owner set to daira
- Priority changed from major to normal
- Status changed from new to assigned
All pages, I meant, not just directory pages.
For posterity (since the above links will stop showing errors when this is fixed), the first link [guess-the-validation-mode] showed 14 Errors, 127 warning(s), and the second [force XHTML 1.0 Transitional] showed errors just for the doctype and <html> tag.