#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:

http://validator.w3.org/check?uri=http%3A%2F%2Ftestgrid.allmydata.org%3A3567%2Furi%2FURI%253ADIR2%253Adjrdkfawoqihigoett4g6auz6a%253Ajx5mplfpwexnoqff7y5e4zjus4lidm76dcuarpct7cckorh2dpgq%2F&charset=%28detect+automatically%29&doctype=Inline&group=1&user-agent=W3C_Validator%2F1.654

If I override the doctype to be "XHTML 1.0 Transitional", it fares much better:

http://validator.w3.org/check?uri=http%3A%2F%2Ftestgrid.allmydata.org%3A3567%2Furi%2FURI%253ADIR2%253Adjrdkfawoqihigoett4g6auz6a%253Ajx5mplfpwexnoqff7y5e4zjus4lidm76dcuarpct7cckorh2dpgq%2F&charset=%28detect+automatically%29&doctype=XHTML+1.0+Transitional&group=1&user-agent=W3C_Validator%2F1.654

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:

http://validator.w3.org/check?uri=http%3A%2F%2Ftestgrid.allmydata.org%3A3567%2F&charset=%28detect+automatically%29&doctype=XHTML+1.0+Transitional&group=1&user-agent=W3C_Validator%2F1.654

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

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.

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
Note: See TracTickets for help on using tickets.