Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:23
    rtonsing commented #1434
  • 14:10
    Gloating0946 starred validator/validator
  • 12:03

    github-actions[bot] on latest

    (compare)

  • 12:03

    github-actions[bot] on latest

    (compare)

  • 12:02

    sideshowbarker on main

    Make trailing-slash-on-void-ele… (compare)

  • 12:02

    sideshowbarker on trailing-slash-on-void-elements-info-rather-than-warning

    (compare)

  • 12:02
    sideshowbarker closed #1436
  • 11:21
    mtrootyy opened #1437
  • 10:02
    sideshowbarker synchronize #1436
  • 10:02

    sideshowbarker on trailing-slash-on-void-elements-info-rather-than-warning

    Make trailing-slash-on-void-ele… (compare)

  • 10:00
    sideshowbarker review_requested #1436
  • 10:00
    sideshowbarker opened #1436
  • 10:00

    sideshowbarker on trailing-slash-on-void-elements-info-rather-than-warning

    Make trailing-slash-on-void-ele… (compare)

  • 04:24
    kcprabase edited #1435
  • Oct 04 23:14
    kcprabase opened #1435
  • Oct 04 14:06
    phil-pickering commented #1433
  • Oct 04 13:08
    phil-pickering commented #1433
  • Oct 04 08:30
    pchampin commented #1433
  • Oct 04 07:53
    usmanakram232 starred validator/validator
  • Oct 04 06:34
    sideshowbarker commented #1426
Jan Rummens
@janrum
I hope your not all asleep ...
Bagboy4l
@Bagboy4l
python ./checker.py run # to run only
Support
Mingye Wang
@Artoria2e5
May I ask what happened to validator.nu to warrant its removal from the README at validator/validator@d8022b6 ? From its wider range of options (specifically ability to force validate as XHTML), I always assumed it's the more "direct" / "official" version of the validator...
Michael[tm] Smith
@sideshowbarker
@Artoria2e5 it’s unclear whether validator.nu is being kept actively up to to date with changes to the sources
Henrique do Nacimento Adriano
@henriqueadriano

Hello, good morning guys.
First of all, thank you for the great tool you guys provided for us to use.
So, I have a small question to ask:
I am trying to validate a small peace of html. Loading the file works just fine, but if I try to send the small chunk of the html, I get this error:

echo "<body style=' '><span style=';Arial",sans-serif; COLOR: black;;Times New Roman"'><p><font style=';Times New Roman"' color='black'><font>If required by the type</font></font></p></span></body>" | vnu-runtime-image\bin\vnu.bat -
:1.1-1.1: error: Non-space characters found without seeing a doctype first. Expected ÔÇ£<!DOCTYPE html>ÔÇØ.
:1.1-1.1: error: Element ÔÇ£headÔÇØ is missing a required instance of child element ÔÇ£titleÔÇØ.
:1.2-1.16: error: Start tag ÔÇ£bodyÔÇØ seen but an element of the same type was already open.
:1.2-1.16: error fatal: Cannot recover after last error. Any further errors will be ignored.
:1.1-1.1: info warning: Consider adding a ÔÇ£langÔÇØ attribute to the ÔÇ£htmlÔÇØ start tag to declare the language of this document.

In the back-end I am using C# to call the lib.

Is there any way to fix this?

Thank you very much!

sideshowbarker
@sideshowbarker:mozilla.org
[m]
@henriqueadriano: Sorry for not noticing your message here until now — but basically the cause of what you describe is that the checker isn’t intended for checking fragments; instead you need to give it a complete document to check
anwait
@anwait_gitlab
hola, i can't figure out how to ignore one file inside the folder when using the nu html checker against a folder, as far as i understood i should be able to use the --filterpattern option but that does not work at all
sideshowbarker
@sideshowbarker:mozilla.org
[m]
@anwait_gitlab it's not possible to tell the checker to ignore particular files
--filterpattern allows ignoring particular messages
anwait
@anwait_gitlab
k, will purge the folder of the specific file before the validation, thanks @sideshowbarker:mozilla.org
Boris Petrov
@boris-petrov
Hi all, I'm trying to use the CSS validator but I'm getting a lot more (bogus) errors than when using the online version. Perhaps because the latest release is from more than one year ago. I'm getting things like Forbidden code point U+0080., Unknown pseudo-element or pseudo-class “::file-selector-button”. (this one is from Bootstrap 5's CSS), “color”: Invalid RGB function. (when used with var) and so on. What can I do? Are there SNAPSHOT releases for newer builds?
sideshowbarker
@sideshowbarker:mozilla.org
[m]
There's a new release
...if you mean the jar releases
Boris Petrov
@boris-petrov
Where?
I mean the JAR ones, yes.
Boris Petrov
@boris-petrov
Ah, I see. I'm using it via the nu.validator:validator package.
Which doesn't have a new release. I can use directly the css-validator one?
sideshowbarker
@sideshowbarker:mozilla.org
[m]
Yeah
Or the HTML checker validator jar too
Boris Petrov
@boris-petrov
I se that nu.validator:validator depends on nu.validator:cssvalidator. Is this the same package as the one you gave me a link to?
Oh, there's a latest thing...
sideshowbarker
@sideshowbarker:mozilla.org
[m]
That can check both HTML and CSS files, as well as SVG files
Boris Petrov
@boris-petrov
Yes, I'm using this one, but the "stable" release.
Using it from Gradle.
Not sure how to use this "latest" from Gradle. Any ideas?
sideshowbarker
@sideshowbarker:mozilla.org
[m]
Yeah I have no idea where the Gradle packages come from
Not from me
Oh, so they come from Maven?
Boris Petrov
@boris-petrov
Yes.
nu.validator:validator:20.7.2 just means get that package version from Maven.
Or from whatever repository is set.
But "latest" is not on Maven Central I believe?
sideshowbarker
@sideshowbarker:mozilla.org
[m]
Yeah I haven't released a new Maven package since then
Boris Petrov
@boris-petrov
Would you kindly? :D
sideshowbarker
@sideshowbarker:mozilla.org
[m]
Not this week or next, no
So I recommend using the jar releases in the meantime
Boris Petrov
@boris-petrov
The jar release == the link to GitHub releases?
1 reply
sideshowbarker
@sideshowbarker:mozilla.org
[m]
I don't personally understand the use case for the Maven packages unless you are doing some integration into another java app
Boris Petrov
@boris-petrov
That's what I'm doing. But what other case is there for the JAR release?
2 replies
sideshowbarker
@sideshowbarker:mozilla.org
[m]
The jar release gets updated/rebuilt every time I push
Boris Petrov
@boris-petrov
I see... well, it's generally not nice for an application to depend on an artifact that changes every so often and one cannot pin the exact version they need.
That's why it's nice to have Maven Central releases.
In any case, thanks for the info. Please do a Maven Central release when you have the time
Boris Petrov
@boris-petrov
hm, I see that this vnu.jar is a fat-jar so it contains a bunch of classes that I don't want - for example org/slf4j/impl/StaticLoggerBinder.class. Because of it I get SLF4J: Class path contains multiple SLF4J bindings..
1 reply
Boris Petrov
@boris-petrov
Is there at least a way to locally build a maven bundle? ./checker.py bundle seems to do that but only for the "validator" package and not for the rest - cssvalidator, htmlparser, etc.
2 replies
sideshowbarker
@sideshowbarker:mozilla.org
[m]
wait, I have them already
./checker.py cssvalidator-bundle, for example