Fail html[xml:lang] when not on an xhtml page
See original GitHub issuexml:lang only works on xhtml documents. When used on an html page, these should fail:
<html xml:lang="en"></html>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Html-xml-lang-mismatch - DigitalA11Y
For XHTML 1.x pages, or polyglot pages served as text/html: Use both the lang attribute and the xml:lang attribute each time you specify...
Read more >New .xhtml pages won't render any jsf tags but previously ...
Typically when I create a c:, h: or f: tag for the first time in a page, I get an error saying its...
Read more >Declaring language in HTML - W3C
using a MIME type such as application/xhtml+xml ), you do not need the lang attribute. The xml:lang attribute alone will suffice. <html xml:lang ......
Read more >Changing doctype of a Visualforce Page
Hi All, I have to use the following doctype in my visualforce page. How do i do this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...
Read more >HTML Versus XHTML - W3Schools
... browsers ignore errors in HTML pages, and try to display the website even if it has some errors in the markup. So...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Verified with the latest axe-coconut (v4.3.0.06000), if I give within
<html>elementxml:langattribute , its giving a voilation , which is expected. But that fail message , probably like - 'xml:lang is not valid ’ instead ‘The <html> element does not have a lang attribute’… @WilcoFiers , Can we take it up as an update or enhancement in this case.Nothing to document. Closing issue.