[๐] Warning and errors when validating the generated HTML using Nu Html Checker
Closed this issue ยท 2 comments
helabenkhalfallah commented
Which component is affected?
Qwik Runtime
Describe the bug
Hello, by validating the HTML generated using Nu Html Checker, it generates several warnings and errors:
The source code:
import { component$ } from '@builder.io/qwik';
export default component$(() => {
return (
<main>
<h1>Qwik</h1>
<section>
<h2>Core features</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</p>
</section>
</main>
);
});
The generated HTML:
<!doctype html>
<html
q:container="paused"
q:version="1.5.2-dev20240418142224"
q:render="ssr-dev"
q:base="/repl/1lsst7gz46v/build/"
q:manifest-hash="vhqpfk"
>
<!--qv q:key=0t_1--><head q:head>
<title q:head>Hello Qwik</title>
</head>
<body>
<!--qv q:id=0 q:key=Ncbm:0t_0-->
<main q:key="4e_0">
<h1>Qwik</h1>
<section>
<h2>Core features</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
</p>
</section>
</main>
<!--/qv-->
</body>
<!--/qv-->
<script type="qwik/json">
{"refs":{},"ctx":{},"objs":[],"subs":[]}
</script>
</html>
The playground link.
The W3C check results:
I can also reproduce the same issues when analyzing the html of some websites using Qwik.
Thank you so much for your help :) :)
Reproduction
Steps to reproduce
Copy/paste the generated html in the Nu Html Checker.
System Info
I used the playground on chrome (Version 124.0.6367.61) and desktop.
Additional Information
No response
dejurin commented
This is a payment for the use of resumable.
But if a developer looks here, I'd like a parameter added that would remove the version number of the qwik.
PatrickJS commented
I made an issue in their repo validator/validator#1722