This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
HTML5 Validation? #19
Comments
Not possible until gumbo-parser adds the underlying functionality. This is being tracked with the following issue: |
This was referenced Oct 5, 2015
Just now seeing this. #46 should do what you want. It uses Gumbo's internal error mechanism. If that patch (or a similar one) is accepted, someone should tell the Gumbo people how the error API is being used here. I imagine that, eventually, they'll move to a public API. |
@shaqq I believe this is now supported by nokogumbo. You just need to specify how many errors you want to receive. Nokogiri::HTML5('<html text </html', max_parse_errors: 10).errors
The error messages for these particular errors aren't great. I'm going to close this now. |
@stevecheckoway cool, thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@rubys
Do you know if this gem allows HTML5 validation of any sort? I seem to get this to work properly:
The text was updated successfully, but these errors were encountered: