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:
Anthony Ramine 2017-01-06 16:16:48 +01:00
parent 8caa564540
commit 0cb09468a0
17 changed files with 72 additions and 31 deletions

View file

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

View file

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