Skip to content
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

Use Nokogiri for HTML check #965

Closed
wants to merge 1 commit into from
Closed

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Oct 23, 2016

This stops using w3c_validators for the HTML check, and rather relies on Nokogiri’s built-in HTML validation features. As Nokogiri does not support HTML5, this change also ignores errors for HTML5 and SVG tags.

To do

  • Tests
  • Fix HTML5 support

Open questions

  • Nokogiri’s validator is weak, as it treats clearly invalid HTML documents as valid (e.g. <span><div>…</div></span>). Is there an alternative?

Related issues

Fixes #943.

@denisdefreyne
Copy link
Member Author

Closing, as this is not a good enough check.

@denisdefreyne denisdefreyne deleted the html-nokogiri-check branch October 23, 2016 11:09
@denisdefreyne
Copy link
Member Author

For an alternative, see nanoc/nanoc.app@44ccc8b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant