dom icon indicating copy to clipboard operation
dom copied to clipboard

Candidates for AbstractRange

Open annevk opened this issue 7 years ago • 6 comments
trafficstars

It seems the following members from Range might be suitable to move up to AbstractRange so StaticRange has them too:

  void collapse(optional boolean toStart = false);
  void selectNode(Node node);
  void selectNodeContents(Node node);

  [NewObject] Range cloneRange(); // with s/Range/AbstractRange/

The following seems reasonable as well, but would require a substantive change in signature as a StaticRange is not guaranteed to have a common ancestor container:

  readonly attribute Node commonAncestorContainer; // with s/Node/Node?/

cc @rniwa @johanneswilm @bzbarsky @dstorey @garykac

annevk avatar Mar 12 '18 10:03 annevk