haikuwebkit/LayoutTests/html5lib/generated/run-namespace-sensitivity-d...

8 lines
248 B
HTML
Raw Permalink Normal View History

HTML parser should consistently inspect the namespace of elements on the stack of open elements https://bugs.webkit.org/show_bug.cgi?id=113723 Reviewed by Adam Barth. Source/WebCore: Added HTMLStackItem::matchesHTMLTag method and use that nearly everywhere instead of HTMLStackItem::hasLocalName. The most important of these changes is in HTMLElementStack's inScopeCommon() function, where the use of matchesHTMLTag means that any of the inXXXScope() calls now only match HTML tags. Tests: html5lib/generated/run-namespace-sensitivity-data.html html5lib/generated/run-namespace-sensitivity-write.html * html/parser/HTMLConstructionSite.cpp: (WebCore::HTMLConstructionSite::generateImpliedEndTagsWithExclusion): * html/parser/HTMLElementStack.cpp: (WebCore::HTMLElementStack::popUntil): (WebCore::HTMLElementStack::topmost): (WebCore::inScopeCommon): (WebCore::HTMLElementStack::inScope): (WebCore::HTMLElementStack::inListItemScope): (WebCore::HTMLElementStack::inTableScope): (WebCore::HTMLElementStack::inButtonScope): (WebCore::HTMLElementStack::inSelectScope): * html/parser/HTMLElementStack.h: (WebCore::HTMLElementStack::popUntilPopped): * html/parser/HTMLFormattingElementList.cpp: (WebCore::HTMLFormattingElementList::closestElementInScopeWithName): * html/parser/HTMLStackItem.h: (WebCore::HTMLStackItem::matchesHTMLTag): (HTMLStackItem): * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): (WebCore::HTMLTreeBuilder::processAnyOtherEndTagForInBody): (WebCore::HTMLTreeBuilder::processEndTagForInCell): (WebCore::HTMLTreeBuilder::processEndTagForInBody): LayoutTests: * html5lib/generated/run-namespace-sensitivity-data-expected.txt: Added. * html5lib/generated/run-namespace-sensitivity-data.html: Added. * html5lib/generated/run-namespace-sensitivity-write-expected.txt: Added. * html5lib/generated/run-namespace-sensitivity-write.html: Added. * html5lib/resources/namespace-sensitivity.dat: Added. Canonical link: https://commits.webkit.org/132122@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-04-02 16:14:40 +00:00
<!DOCTYPE html>
<script>
var test_files = [ '../resources/namespace-sensitivity.dat' ]
</script>
<script src="../../resources/dump-as-markup.js"></script>
<script>window.forceDataURLs = true;</script>
<script src="../resources/runner.js"></script>