[wp-trac] [WordPress Trac] #14226: Add XHTML namespace declaration to Twenty Ten/Twenty Eleven to provide XHTML compatibility
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 21:05:37 UTC 2011
#14226: Add XHTML namespace declaration to Twenty Ten/Twenty Eleven to provide
XHTML compatibility
-----------------------------------+--------------------------
Reporter: peaceablewhale | Owner: iandstewart
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.2
Component: Themes | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+--------------------------
Comment (by peaceablewhale):
Yes, when the page is served as text/html, DOM methods like
document.getElementsByTagNameNS still works even though there is no
xmlns="http://www.w3.org/1999/xhtml" declared because HTML does not
support namespace and browsers put all elements in html in the HTML
namespace automatically. However, when the page is served as
application/xhtml+xml, the XML namespace is required as XML processing
rules are now used and the default namespace is null.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14226#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list