Opened 15 years ago
Closed 15 years ago
#9531 closed defect (bug) (wontfix)
language_attributes() defaults to 'html'
Reported by: | CharlesClarkson | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8 |
Component: | Themes | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
A lot of theme designers start with the files for Classic or Default themes when creating their theme files.
The language_attributes() in both themes is used with the default 'html' value even though the documents specifically have xhtml DOCTYPEs.
I have searched the internet in hopes of correcting this issue, but it all starts here. language_attributes('xhtml') should be used with xhtml doctypes.
I have attached a diff file with a patch for Classic and for Default.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
-1. if a plugin outputs invalid xhtml, the page won't validate any longer.