Comments (1)
The violation in the spec applies to the parsed document in the DOM and not to any pre-parsed source markup.
And the HTML checker operates on the parsed document in the DOM, not on the source markup.
See more at #1668 (comment)
To put that in other words: Your source markup represents instructions to the HTML parser — and this instruction:
<p data-FOO="foo">
…to an HTML parser means exactly the same thing at this instruction:
<p data-foo="foo">
And in both cases, what the HTML parser creates in the DOM is <p data-foo="foo">
.
That is, an HTML parser reads the markup data-FOO="foo"
as meaning data-foo="foo"
.
To clarify a bit further — to an HTML parser, this markup:
<!DOCTYPE HTML>
<HTML LANG="en">
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY>
<P DATA-FOO="FOO">correct??</P>
</BODY>
</HTML>
…means exactly the same thing as this markup:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test</title>
</head>
<body>
<p data-FOO="foo">correct??</p>
</body>
</html>
And in fact to an HTML parser the following:
<!DOCTYPE html>
<html lang=en>
<title>Test</title>
<p data-FOO=foo>correct??</p>
… is also exactly the same thing as those above.
from validator.
Related Issues (20)
- Add "onpageswap" attribute to "body" element
- WordPress Gutenberg Block Library CSS incorrect validation HOT 3
- No warning for validator HOT 2
- Icon for "verified html" HOT 2
- Add writingsuggestions attribute
- Possible misuse of aria-label. (If you disagree with this warning
- Add shadowrootserializable attribute to template element
- the XML syntax is not recommended
- bad my compute
- CSS text-wrap and shape-margin throwing validator errors
- Button with type="button" doesn't support role="combobox"
- Element dialog is missing required attribute role HOT 1
- Error Code 429 - too many requests HOT 2
- Warnings about non supported, non global ARIA attributes use on ARIA roles
- Misunderstood language HOT 2
- <a> must not appear as a descendant of <button>
- Bad value onion-location for attribute http-equiv on element meta. HOT 1
- False positive on valid CSP `sandbox` values
- support framework attributes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validator.