DescriptionInhibit title updates when removing children before setting new value
In <https://codereview.chromium.org/107513013> children to <title>
were removed before setting the new title child. This caused one extra
title change notification to the empty string before the new value was
set.
Avoid the extra notification by ignoring title updates when children
of HTMLTitleElement change until the final appendChild with the new
text node.
Also make sure to add a child list mutation scope for the update so
that both the removal and addition ends up in the same mutation. Add
test for this.
BUG=331351
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164789
Patch Set 1 #
Total comments: 3
Patch Set 2 : Address review comments #Patch Set 3 : Rebased #
Messages
Total messages: 9 (0 generated)
|