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

Revise the "XML is not HTML" test #27414

Merged
merged 1 commit into from
Dec 20, 2016

Conversation

matthewd
Copy link
Member

@matthewd matthewd commented Dec 20, 2016

It was depending on a side-effect of the old html-scanner, so was no longer proving what it intended to. Instead, assert more directly about the resulting observable difference.

@kaspth should this test even exist, or is this now really rails-html-sanitizer's job?

@maclover7 while we still ultimately want the Fixnum warning to go away, this removes the assertion it was tripping, freeing #27412

It was depending on a side-effect of the old html-scanner, so was no
longer proving what it intended to. Instead, assert more directly about
the resulting observable difference.
@matthewd matthewd requested a review from kaspth December 20, 2016 08:58
Copy link
Contributor

@kaspth kaspth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise fine, and we do have some tests still in Rails for the html sanitization integration, so that part is fine too.

But, I think, we could certainly move it to rails-html-sanitizer as well.

@matthewd matthewd merged commit 1bf6acb into rails:master Dec 20, 2016
matthewd added a commit to matthewd/rails that referenced this pull request Dec 26, 2016
matthewd added a commit to matthewd/rails that referenced this pull request Dec 27, 2016
@matthewd matthewd deleted the fix-xml-vs-html-assertion branch June 11, 2017 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants