Chromium Code Reviews
DescriptionSet Attr.ownerDocument in Element#setAttributeNode()
Attr objects can move across documents by setAttributeNode().
So It needs to reset ownerDocument through TreeScopeAdoptr::adoptIfNeeded().
BUG=248950
TEST=set-attribute-node-from-iframe.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152938
Patch Set 1 #
Total comments: 4
Patch Set 2 : Addressed the point. #
Messages
Total messages: 6 (0 generated)
|
|||||||||||||||||||||||||||||||||||||