DescriptionDrop [LegacyInterfaceTypeChecking] for most of Selection
For both addRange() and collapse(), Firefox and IE11 already throw when
the node argument is null:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3781
removeAllRanges() and empty() still provide the functionality of
collapse(null).
DOMSelection::collapse() is only called from bindings, so the ASSERT
will hold.
As for setPosition(), that isn't implemented by Firefox or IE, but it's
an alias of collapse() and usage of setPosition() itself is very low:
https://www.chromestatus.com/metrics/feature/timeline/popularity/327
Leave setBaseAndExtend() for now, as usage is slightly higher and it
also requires making the arguments non-optional:
https://www.chromestatus.com/metrics/feature/timeline/popularity/406
BUG=391673, 561338
Patch Set 1 #Patch Set 2 : update tests #
Messages
Total messages: 17 (7 generated)
|