-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
fix: fix <noframes>
parsing
#1277
Conversation
expect(b.childNodes[0].nodeName).toBe('#text'); | ||
expect((b.childNodes[0] as TextNode).value).toBe('should be outside'); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find a better place to put this test. For some reason the tests in test/data/html5lib-tests/serializer
do not repro the issue.
['style'], | ||
['textarea'], | ||
['title'], | ||
['xmp'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to find all the "raw text" tags I knew of, based on the Firefox source code.
Again, all these tests were already passing except for noframes
.
Thanks for this @nolanlawson! This also would be a good one to upstream to https://github.com/html5lib/html5lib-tests, which is used to the the majority of spec-compliant HTML parsers. |
are we happy to merge this meanwhile? and open a separate issue to make sure we do add it to the upstream tests eventually |
@43081j Happy to do so |
Fixes #972
This also adds a test to make sure that "raw text" tags (e.g.
<noembed>
,<noframes>
,<style>
, etc.) all work the same. For the test, I'm reusing the same repro from #972.Before this fix, all the tests pass except for
<noframes>
specifically.