Bug 562013 - parse innerHTML directly to the destination node, p=smaug+hsivonen, r=sicking

This commit is contained in:
Olli Pettay
2010-05-04 11:36:42 +03:00
parent 058b51e49f
commit c780b1ef1d
3 changed files with 55 additions and 23 deletions

View File

@@ -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);