Conversation

The fact that w3c doesn't support off-line validation of html shows how hard it is to write standards compliant code. Not EVERY html document needs to be publicly accessible, and there are many documents that should NEVER be uploaded to a server.
3
8
Quote Tweet
Replying to @encthenet and @DarkainMX
Actually, no, their web checker isn't "available". They haven't done a release recently. Web site: Version: 21.4.17 Latest release: github.com/validator/vali 20.6.30. Even the latest tag is 21.4.9 which isn't up to date.
1
And w/ the latest release (which this is against) being almost a year out of date, no point in reporting the bugs.
Quote Tweet
Replying to @TychoTithonus
Managed to the the nu validator running. But of course it's out of data, and the results doesn't match the web. Getting this on a CSS file: error: Element โ€œhtmlโ€ not allowed in this context. but the web version says the same CSS is 100% fine.
1
Since the --skip-non-XXX and --also-check-XXX don't work, nothing a little find couldn't fix: java -jar vnu.jar --stdout $(find deploy -name '*.html') java -jar vnu.jar --css --stdout $(find deploy -name '*.css') java -jar vnu.jar --svg --stdout $(find deploy -name '*.svg')
1
Replying to and
It's really bad at validating SVG and isn't particularly good at validating CSS. It honestly isn't very good for HTML either but that's partly the fault of the current HTML living standard. It permits nearly everything so there's not much it can actually validate anymore.
1
1
Replying to and
I recommend eslint for JavaScript and stylelint for CSS. I started using xmllint for HTML and sticking to valid XML syntax in to catch mistakes like typos. End result is the same due to html-minifier. I don't mind needing to write disabled="" instead of disabled to catch errors.
1
1
Show replies
Replying to
Yeah, looks like it only does the extension checking on the command line. I'll try to find for all the files. Yeah also the regex filtering appears broken as well. I ended up just using egrep -v.
Replying to
You must have a difference version, because I just tried it that way: java -jar vnu.jar --also-check-css --also-check-svg $(find deploy -name '*.html' -o -name '*.css' -o -name '*.svg') and got: media/css/tufte.css":0.16-0.29: error: Element โ€œhtmlโ€ not allowed in this context
1
Show replies