question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fail html[xml:lang] when not on an xhtml page

See original GitHub issue

xml:lang only works on xhtml documents. When used on an html page, these should fail:

<html xml:lang="en"></html>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
padmavemulapaticommented, Mar 2, 2020

Verified with the latest axe-coconut (v4.3.0.06000), if I give within <html> element xml:lang attribute , 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.

image

0reactions
jeeyyycommented, Mar 16, 2020

Nothing to document. Closing issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found