Add basic "in foreign content" support to the TreeBuilder
Created attachment 61020 [details] Patch
Comment on attachment 61020 [details] Patch Cool! WebCore/html/HTMLElementStack.cpp:336 + bool HTMLElementStack::isOnlyHTMLElementsInScope() const hasOnlyHTMLElementsInScope ? WebCore/html/HTMLTreeBuilder.cpp:1395 + else This doesn't work right if MATHML is turned on and SVG is off. WebCore/html/HTMLTreeBuilder.cpp:1402 + m_tree.insertForeignElement(token, m_tree.currentElement()->namespaceURI()); Why do we re-read this instead of using currentNamespace? WebCore/html/HTMLTreeBuilder.cpp:2194 + if (token.name() == SVGNames::scriptTag && m_tree.currentElement()->hasTagName(SVGNames::scriptTag)) { Missing #ifdef SVG WebCore/html/HTMLTreeBuilder.cpp:2236 + } insert blank line
Oops, this got landed with another change as part of http://trac.webkit.org/changeset/62926.