-
Notifications
You must be signed in to change notification settings - Fork 62
Add some tests to match changes made in new ruby model #27
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
Conversation
Critic review: https://critic.hoppipolla.co.uk/r/458 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
Just to be entirely clear: I don't suggest taking this PR before it's actually been implemented (or clearly in the process of being implemented). |
https://bugs.webkit.org/show_bug.cgi?id=131175 Patch by Koji Ishii <kojishi@gmail.com> on 2014-04-17 Reviewed by Darin Adler. Source/WebCore: Tests: html5lib/resources/ruby.dat html5lib/resources/tests19.dat This patch makes WebKit HTML parser to match to the tag omission rules of HTML5 CR Feb 2014: http://www.w3.org/TR/2014/CR-html5-20140204/syntax.html#syntax-tag-omission with the support for two new elements (rb, rtc) which were also defined in the spec: http://www.w3.org/TR/2014/CR-html5-20140204/text-level-semantics.html#the-rb-element http://www.w3.org/TR/2014/CR-html5-20140204/text-level-semantics.html#the-rtc-element to better support use cases presented by W3C I18N WG: http://www.w3.org/TR/ruby-use-cases/ * html/HTMLTagNames.in: rb and rtc added as HTMLElement interfaces. * html/parser/HTMLConstructionSite.cpp: (WebCore::hasImpliedEndTag): the spec says rb and rtc have implied end tags. * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::processStartTagForInBody): rb and rtc added. rt excludes rtc from its implied end tags. LayoutTests: 25 new test cases in 2 test files imported from pull requests to html5lib-tests, with run- and expected-files generated. All new tests pass with the changes included in this patch. * html5lib/generated/run-ruby-data-expected.txt: Added. * html5lib/generated/run-ruby-data.html: Added (generated by generate-test-wrappers.py) * html5lib/generated/run-ruby-write-expected.txt: Added. * html5lib/generated/run-ruby-write.html: Added (generated by generate-test-wrappers.py) * html5lib/resources/ruby.dat: Added from darobin/html5lib-tests#1 * html5lib/resources/tests19.dat: Updated from html5lib/html5lib-tests#27 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@167437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Additional test cases for new ruby model
This is in WebKit at least, AFAICT. Time to more seriously consider landing this, @darobin? |
Yes, it's in WebKit and there's a patch on the way in Gecko. I have heard interest from the others, as well (but I'm not aware of anything being available at this point). I'm certainly happy for it to land, along with the python parser changes and the web-platform-test import (which'll need regeneration)! |
wchen has reviewed all the gecko patches and they're just waiting for him to commit them |
Add some tests to match changes made in new ruby model
https://bugs.webkit.org/show_bug.cgi?id=131175 Patch by Koji Ishii <kojishi@gmail.com> on 2014-04-17 Reviewed by Darin Adler. Source/WebCore: Tests: html5lib/resources/ruby.dat html5lib/resources/tests19.dat This patch makes WebKit HTML parser to match to the tag omission rules of HTML5 CR Feb 2014: http://www.w3.org/TR/2014/CR-html5-20140204/syntax.html#syntax-tag-omission with the support for two new elements (rb, rtc) which were also defined in the spec: http://www.w3.org/TR/2014/CR-html5-20140204/text-level-semantics.html#the-rb-element http://www.w3.org/TR/2014/CR-html5-20140204/text-level-semantics.html#the-rtc-element to better support use cases presented by W3C I18N WG: http://www.w3.org/TR/ruby-use-cases/ * html/HTMLTagNames.in: rb and rtc added as HTMLElement interfaces. * html/parser/HTMLConstructionSite.cpp: (WebCore::hasImpliedEndTag): the spec says rb and rtc have implied end tags. * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::processStartTagForInBody): rb and rtc added. rt excludes rtc from its implied end tags. LayoutTests: 25 new test cases in 2 test files imported from pull requests to html5lib-tests, with run- and expected-files generated. All new tests pass with the changes included in this patch. * html5lib/generated/run-ruby-data-expected.txt: Added. * html5lib/generated/run-ruby-data.html: Added (generated by generate-test-wrappers.py) * html5lib/generated/run-ruby-write-expected.txt: Added. * html5lib/generated/run-ruby-write.html: Added (generated by generate-test-wrappers.py) * html5lib/resources/ruby.dat: Added from darobin/html5lib-tests#1 * html5lib/resources/tests19.dat: Updated from html5lib/html5lib-tests#27 Canonical link: https://commits.webkit.org/149867@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
As per http://darobin.github.io/html-ruby/. This change is being landed in the W3C specification, apply with caution.