|
Move 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.
This is a re-land of 160869 https://codereview.chromium.org/44333002/
BUG= 311080
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160981
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+295 lines, -79 lines) |
Patch |
|
A |
LayoutTests/fast/innerHTML/innerHTML-svg-read.html
|
View
|
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-svg-read-expected.txt
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-svg-write.html
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-svg-write-expected.txt
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-template-crash.xhtml
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-template-crash-expected.xhtml
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-xml.xhtml
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/innerHTML/innerHTML-xml-expected.txt
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/loader/delete-inside-cancelTimer-expected.txt
|
View
|
|
2 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
LayoutTests/svg/css/script-tests/svg-attribute-length-parsing.js
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.cpp
|
View
|
|
3 chunks |
+46 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.idl
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/editing/markup.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/editing/markup.cpp
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLElement.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLElement.cpp
|
View
|
|
1 chunk |
+0 lines, -58 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLElement.idl
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/parser/HTMLTreeBuilder.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/parser/HTMLTreeBuilder.cpp
|
View
|
|
7 chunks |
+27 lines, -11 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|