tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

selection-api.idl (1858B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Selection API (https://w3c.github.io/selection-api/)
      5 
      6 [Exposed=Window]
      7 interface Selection {
      8  readonly attribute Node? anchorNode;
      9  readonly attribute unsigned long anchorOffset;
     10  readonly attribute Node? focusNode;
     11  readonly attribute unsigned long focusOffset;
     12  readonly attribute boolean isCollapsed;
     13  readonly attribute unsigned long rangeCount;
     14  readonly attribute DOMString type;
     15  readonly attribute DOMString direction;
     16  Range getRangeAt(unsigned long index);
     17  undefined addRange(Range range);
     18  undefined removeRange(Range range);
     19  undefined removeAllRanges();
     20  undefined empty();
     21  sequence<StaticRange> getComposedRanges(optional GetComposedRangesOptions options = {});
     22  undefined collapse(Node? node, optional unsigned long offset = 0);
     23  undefined setPosition(Node? node, optional unsigned long offset = 0);
     24  undefined collapseToStart();
     25  undefined collapseToEnd();
     26  undefined extend(Node node, optional unsigned long offset = 0);
     27  undefined setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
     28  undefined selectAllChildren(Node node);
     29  undefined modify(optional DOMString alter, optional DOMString direction, optional DOMString granularity);
     30  [CEReactions] undefined deleteFromDocument();
     31  boolean containsNode(Node node, optional boolean allowPartialContainment = false);
     32  stringifier;
     33 };
     34 
     35 dictionary GetComposedRangesOptions {
     36  sequence<ShadowRoot> shadowRoots = [];
     37 };
     38 
     39 partial interface Document {
     40  Selection? getSelection();
     41 };
     42 
     43 partial interface Window {
     44  Selection? getSelection();
     45 };
     46 
     47 partial interface mixin GlobalEventHandlers {
     48  attribute EventHandler onselectstart;
     49  attribute EventHandler onselectionchange;
     50 };