#824 assigned defect

WUI pages lack correct XHTML 1.0 Transitional declarations

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 (10)

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

comment:6 Changed at 2015-02-09T02:19:48Z by daira

  • Keywords html added

comment:7 Changed at 2016-03-22T05:02:25Z by warner

  • Milestone changed from 1.12.0 to 1.13.0

Milestone renamed

comment:8 Changed at 2016-06-28T18:17:14Z by warner

  • Milestone changed from 1.13.0 to 1.14.0

renaming milestone

comment:9 Changed at 2020-06-30T14:45:13Z by exarkun

  • Milestone changed from 1.14.0 to 1.15.0

Moving open issues out of closed milestones.

comment:10 Changed at 2021-03-30T18:40:19Z by meejah

  • Milestone changed from 1.15.0 to soon

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.