DescriptionMove innerHTML and outerHTML to Element
Per the DOM Parsing specification, innerHTML and outerHTML should be
available on Element, not HTMLElement. Since HTMLElement and SVGElement
are the only interfaces that inherit from Element, the only Web visible
difference should be that innerHTML and outerHTML are now available for
SVG elements.
For <svg>.innerHTML = "<!-- svg elements here -->" to insert elements
with correct namespace URI, one adjustment has to be made to the tree
builder step of the html parsing algorithm. The changes are described in
the spec change <http://html5.org/r/7768>. The new concept of
'adjustedCurrentNode' is used when processing and when deciding to
process foreign content and makes sure that parsed elements go into the
correct namespace.
Some layout tests that (perhaps accidentally) use innerHTML and
outerHTML on SVG elements are adjusted slightly.
BUG=311080
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160869
Patch Set 1 #
Total comments: 2
Patch Set 2 : Clean up tests #Patch Set 3 : Code simplifications and added tests for parsing inside foreignObject #Patch Set 4 : Add XML based tests and -expected.txt files #
Total comments: 7
Patch Set 5 : Fix and add test for introduced faulty cast and simplify adjustedCurrentStackItem() #Patch Set 6 : Rebased to latest master #
Total comments: 1
Messages
Total messages: 17 (0 generated)
|