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

Check for malformed markup #15452

Open
octopusinvitro opened this issue Sep 2, 2016 · 0 comments
Open

Check for malformed markup #15452

octopusinvitro opened this issue Sep 2, 2016 · 0 comments

Comments

@octopusinvitro
Copy link
Contributor

octopusinvitro commented Sep 2, 2016

Problem

At the moment we don't have a way to detect malformed markup. See for example: #15433

Proposed Solution

Nokogiri in strict mode is probably all we need. (#15433 (comment))

Changing the subject to Nokogiri::HTML(last_response.body) { |config| config.strict } lets us then run a test later like

it "has no HTML errors" do
   subject.errors.must_be_empty
end

Acceptance Criteria

subject.errors must be empty for all pages.

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

No branches or pull requests

2 participants