DescriptionBe more strict about multiple documentElements
We used to allow (mistakenly) multiple documentElements
when appending a DocumentFragment to a document, as
docfragment-multiple-document-elements.html shows.
This patch detects that case by making canReplaceChild
also handle appending/inserting. To make this more clear
the method is now called canAcceptChild.
Finally fix the FIXME by making canAcceptChild throw
more specific exception messages than before.
BUG=434111
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186625
Patch Set 1 #Patch Set 2 : Fix tests #
Total comments: 1
Patch Set 3 : Do the c -> child rename #
Messages
Total messages: 9 (2 generated)
|