#9976 closed enhancement (wontfix)
The lang attribute missing
Reported by: | redgecko | Owned by: | |
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | trivial | Version: | 2.7.1 |
Component: | Validation | Keywords: | has-patch 2nd-opinion |
Focuses: | Cc: |
Description
In the current version, WordPress outputs either 'lang' or 'xml:lang' attribute in the html tag.
But W3C Recommendation require both attributes when specifying the language of an element.
Attachments (1)
Change History (11)
#2
in reply to:
↑ 1
@
16 years ago
I know those tickets.
However I think there were insufficient.
Although WordPress declares 'XHTML 1.0 Transitional' at the DOCTYPE declaration, it doesn't follow W3C Recommendation.
My attached patch changes the default output from 'html' into 'xhtml' in 'language_attributes()' function.
With this slight patch, you can enhance the compatibility with the recommendation.
#5
@
15 years ago
- Milestone changed from Future Release to 2.9
- Priority changed from normal to lowest
- Severity changed from major to trivial
#6
@
15 years ago
- Component changed from Template to Validation
- Type changed from defect (bug) to enhancement
#7
@
15 years ago
hmm xhtml does not really work for websites, we should stick with html per default. it just feels better without the x.
#9
@
15 years ago
- Milestone Future Release deleted
- Resolution set to wontfix
- Status changed from new to closed
trivial patch, uncommitted for 6 months
#10
@
15 years ago
Doesn't WordPress aim for XHTML? http://codex.wordpress.org/HTML_to_XHTML
see #5393, #8745
If the html_type option is set to anything other than text/html, both attributes will be output.