mirror of
https://github.com/servo/servo.git
synced 2025-10-03 01:59:14 +01:00
Properly insert text in document when parsing
If the last child of a node is a Text child and we are inserting text in that node, we need to append it to that Text child. Doing that means that HTMLStyleElement::children_changed gets called less frequently, but that's not a problem during parsing thanks to the pop hook.
This commit is contained in:
parent
8caa564540
commit
0cb09468a0
17 changed files with 72 additions and 31 deletions
|
@ -1,6 +1,6 @@
|
|||
[open-url-javascript-window-2.htm]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[XMLHttpRequest: open() - resolving URLs (javascript: ]
|
||||
[XMLHttpRequest: open() - resolving URLs (javascript: <iframe>; 2)]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[open-url-javascript-window.htm]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[XMLHttpRequest: open() - resolving URLs (javascript: ]
|
||||
[XMLHttpRequest: open() - resolving URLs (javascript: <iframe>; 1)]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[051.html]
|
||||
type: testharness
|
||||
[document.write \\r\\n]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
[resource-selection-invoke-insert-source-networkState.html]
|
||||
type: testharness
|
||||
[NOT invoking resource selection by inserting ]
|
||||
[NOT invoking resource selection by inserting <source> when networkState is not NETWORK_EMPTY]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[resource-selection-invoke-insert-source-not-in-document.html]
|
||||
type: testharness
|
||||
[invoking resource selection by inserting ]
|
||||
[invoking resource selection by inserting <source> in video not in a document]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[resource-selection-invoke-insert-source.html]
|
||||
type: testharness
|
||||
[invoking resource selection by inserting ]
|
||||
[invoking resource selection by inserting <source>]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[resource-selection-remove-source.html]
|
||||
type: testharness
|
||||
[Changes to networkState when inserting and removing a ]
|
||||
[Changes to networkState when inserting and removing a <source>]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[resource-selection-source-media.html]
|
||||
type: testharness
|
||||
[the ]
|
||||
[the <source> media attribute has no effect]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
[math-parse01.html]
|
||||
type: testharness
|
||||
[Testing rang and lang entity code points]
|
||||
expected: FAIL
|
||||
|
||||
[html tags allowed in annotation-xml/@encoding='text/html'.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[compile-error-cross-origin.html]
|
||||
type: testharness
|
||||
[window.onerror - compile error in ]
|
||||
[window.onerror - compile error in <script src=//www1...>]
|
||||
expected: FAIL
|
||||
|
||||
[window.onerror - compile error in <script src=//www1...> (column)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[runtime-error-cross-origin.html]
|
||||
type: testharness
|
||||
[window.onerror - runtime error in ]
|
||||
[window.onerror - runtime error in <script src=//www1...>]
|
||||
expected: FAIL
|
||||
|
||||
[window.onerror - runtime error in <script src=//www1...> (column)]
|
||||
|
|
|
@ -10,7 +10,7 @@ function do_test() {
|
|||
t.step(function() {
|
||||
var doc = document.getElementsByTagName("iframe")[0].contentDocument;
|
||||
doc = doc.getElementsByTagName("iframe")[0].contentDocument;
|
||||
assert_equals(doc.body.firstChild.textContent, "foo");
|
||||
assert_equals(doc.body.firstChild.textContent, "foo\n");
|
||||
t.done();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue