Closed bsmth closed 7 months ago
Oh, BTW, https://html-validate.org/ is not an official validator for the HTML spec. They use their own set of rules, parser, etc. I’d suggest using https://validator.w3.org/ and packages based on it. For example, I use w3c-html-validator. It’s not “offline”, but it uses the W3C’s API for checking the document.
Oh, BTW, https://html-validate.org/ is not an official validator for the HTML spec. They use their own set of rules, parser, etc. I’d suggest using https://validator.w3.org/ and packages based on it. For example, I use w3c-html-validator. It’s not “offline”, but it uses the W3C’s API for checking the document.
Good call, removed in https://github.com/mdn/dom-examples/pull/268/commits/378f31b0a4a6c8b26e61c9ee6c044d1fb51e2e66
Going to merge shortly, ty!
This PR fixes HTML validation errors relating to where the script element is permitted.
Changes:
<script>
elements moved inside<head>
or<body>
Additions:
html-validate
config - see https://html-validate.org/usage/index.htmlThere are two html-validate violations for the
element-permitted-content
rule left over after this PR:How to review this PR
To ignore whitespace-only changes, view files using the following view:
https://github.com/mdn/dom-examples/pull/268/files?diff=split&w=1
Fixes #267