Closed kschmott closed 1 year ago
Hi @kschmott, thanks for the issue! font-variation-settings
is a relatively recent addition to CSS, and html5validator
is using an older version of the Nu HTML checker that doesn't support it. I would suggest inquiring with html5validator
if they're willing to upgrade to a later version. For now, I suggest that you disable tailwind during testing.
Besides disabling CSS validation as you propose or waiting for html5validator
to upgrade their backend, another option is to cut out html5validator
from project 3. It's essentially a middleman for the Nu HTML checker, which is packaged for JavaScript apps via vnu-jar . Since project 3 uses npm
for JavaScript dependencies, we can run validation using vnu-jar
instead of html5validator
. vnu-jar
packages a later version of v.Nu and would not report the error that you've posted here.
@kschmott and I were working on this during office hours. Of course, he did remove the tailwind stuff for his autograder submission. It would be nice if he could have left it in.
Thanks for the added detail about vnu-jar
, TIL. That sounds reasonable to me.
Which project?
Project 3
Describe the bug
When I including the Tailwind via a script tag, it causes html5validator to fail on the cypress tests.
A copy-paste of a traceback (prefer text, not screenshot)
A quote from the source code of a public unit test.
A quote from the spec
To Reproduce
Steps to reproduce the behavior.
TO FIX
Add htmlCode = htmlCode.replace(/<style.*<\/style>/, ""); below or above line 170 in test_index_public.cy.js(or any test that run html5validator).
Expected behavior
Test should pass without html5validator errors