-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade nu.validator html parser #1958
Upgrade nu.validator html parser #1958
Conversation
Liftweb has a slightly ancient nu.validator version. Specifically it breaks vuetify data-table since it removes <td> tags inside <template>.
I'm having trouble finding who is publishing these point releases. The original site notes the last release as 1.4, and the Mercurial repo seems to have more recent commits but its last tag is for the 1.4 release. Is it this fork? What does 1.4.12 include with respect to 1.4? |
Why not upgrade to latest from https://github.com/validator/validator ? |
It looks to be that fork, but they're not tagging releases and may not be pushing the commits that have the version bumps at all? I'm inclined to think this is safe but have very little to go on in terms of validating that this is the same code that's getting released. @sideshowbarker seems to be the maintainer of the fork — maybe he can shed some light on the validity of making this change / dangers thereof? |
Assuming the releases being referred to here at the maven packages with groupId=nu.validator and artifact=htmlparser: https://repo1.maven.org/maven2/nu/validator/htmlparser/ …then yeah I am the one doing those releases. As far as those releases being safe to use: The same code is what I use as the HTML parser for the W3C Nu Html Checker https://validator.w3.org/nu/ — so it’s functioning in that context. I have not used it myself outside that context, but I don’t have reason to believe it’d have any problems. One difference from upstream that you should be aware of is that the fork doesn’t expose an XOM API. But that shouldn’t affect you unless (unless of course if you’re actually using the XOM API). There are some other differences from upstream: validator/htmlparser@master...validator-nu …but all the differences there except for the Add .classpath, .settings, .project, .mailmap change are changes to bring the parser into conformance with the current requirements in the HTML spec. As far as tagging, going forward I can start tagging every time I do a release. The version numbers just reflect that fact I never bump the minor version number (the 1.4) but always only the patch number. That seems appropriate since the fork introduces no API changes (well, other than completely dropping the XOM API, but I’m not aware of anybody that’s been using that anyway). |
Awesome, thanks. I think with some certification that these builds are legit, I'm fine to start using it provided things work. The CI build is failing, so I'm not sure what's up with that offhand. Will try to take a look at it before too long. |
Looks like it was one of our favorite |
Liftweb has a slightly ancient nu.validator version.
Specifically it breaks vuetify data-table since it removes tags
inside .
I know I haven't discussed this on the mailing list but since the change is small and passes all lift tests I'm hoping I don't get shot for it =)