Commit ae437c10 authored by costan@gmail.com's avatar costan@gmail.com

Remove FIXIT pointing to WONTFIX bug in HTMLTreeBuilder.

BUG=

Review URL: https://codereview.chromium.org/317733008

git-svn-id: svn://svn.chromium.org/blink/trunk@175743 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d25c7475
...@@ -295,21 +295,19 @@ HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, DocumentFragment* f ...@@ -295,21 +295,19 @@ HTMLTreeBuilder::HTMLTreeBuilder(HTMLDocumentParser* parser, DocumentFragment* f
, m_options(options) , m_options(options)
{ {
ASSERT(isMainThread()); ASSERT(isMainThread());
// FIXME: This assertion will become invalid if <http://webkit.org/b/60316> is fixed.
ASSERT(contextElement); ASSERT(contextElement);
if (contextElement) {
// Steps 4.2-4.6 of the HTML5 Fragment Case parsing algorithm:
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#fragment-case
// For efficiency, we skip step 4.2 ("Let root be a new html element with no attributes")
// and instead use the DocumentFragment as a root node.
m_tree.openElements()->pushRootNode(HTMLStackItem::create(fragment, HTMLStackItem::ItemForDocumentFragmentNode));
if (isHTMLTemplateElement(*contextElement)) // Steps 4.2-4.6 of the HTML5 Fragment Case parsing algorithm:
m_templateInsertionModes.append(TemplateContentsMode); // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#fragment-case
// For efficiency, we skip step 4.2 ("Let root be a new html element with no attributes")
// and instead use the DocumentFragment as a root node.
m_tree.openElements()->pushRootNode(HTMLStackItem::create(fragment, HTMLStackItem::ItemForDocumentFragmentNode));
resetInsertionModeAppropriately(); if (isHTMLTemplateElement(*contextElement))
m_tree.setForm(closestFormAncestor(*contextElement)); m_templateInsertionModes.append(TemplateContentsMode);
}
resetInsertionModeAppropriately();
m_tree.setForm(closestFormAncestor(*contextElement));
} }
HTMLTreeBuilder::~HTMLTreeBuilder() HTMLTreeBuilder::~HTMLTreeBuilder()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment