Bug 562013 - parse innerHTML directly to the destination node, p=smaug+hsivonen, r=sicking
This commit is contained in:
@@ -4880,7 +4880,8 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
checkAttributes(attributes, ns);
|
||||
// ]NOCPP]
|
||||
// Can't be called for custom elements
|
||||
T elt = createElement(ns, elementName.name, attributes, form);
|
||||
T elt = createElement(ns, elementName.name, attributes, fragment ? null
|
||||
: form);
|
||||
StackNode<T> current = stack[currentPtr];
|
||||
if (current.fosterParenting) {
|
||||
fatal();
|
||||
@@ -4901,7 +4902,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
checkAttributes(attributes, ns);
|
||||
// ]NOCPP]
|
||||
// Can't be called for custom elements
|
||||
T elt = createElement(ns, name, attributes, form);
|
||||
T elt = createElement(ns, name, attributes, fragment ? null : form);
|
||||
StackNode<T> current = stack[currentPtr];
|
||||
if (current.fosterParenting) {
|
||||
fatal();
|
||||
@@ -4970,7 +4971,7 @@ public abstract class TreeBuilder<T> implements TokenHandler,
|
||||
checkAttributes(attributes, ns);
|
||||
// ]NOCPP]
|
||||
// Can't be called for custom elements
|
||||
T elt = createElement(ns, name, attributes, form);
|
||||
T elt = createElement(ns, name, attributes, fragment ? null : form);
|
||||
StackNode<T> current = stack[currentPtr];
|
||||
appendElement(elt, current.node);
|
||||
elementPushed(ns, name, elt);
|
||||
|
||||
Reference in New Issue
Block a user