DescriptionAdd [TypeChecking=Interface] to Node interface
This changes the behavior of the methods
compareDocumentPosition(Node)
contains(Node?)
isEqualNode(Node?)
isSameNode(Node?)
that now throw TypeError exceptions instead of returning false when called
with invalid arguments. The argument to isSameNode() is also made
required instead of optional, meaning it will also throw TypeError when
called without arguments.
The new behavior matches Firefox, except in the case of isSameNode() which
Firefox doesn't support. (The method has been removed from the spec.)
The new behavior of compareDocumentPosition() and isEqualNode() also matches
IE11.
BUG=462561
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191440
Patch Set 1 #Patch Set 2 : adjust isSameNode #Patch Set 3 : update test wrt isSameNode() change #
Messages
Total messages: 22 (6 generated)
|