tor-browser

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

urlpattern.idl (1880B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: URL Pattern Standard (https://urlpattern.spec.whatwg.org/)
      5 
      6 typedef (USVString or URLPatternInit) URLPatternInput;
      7 
      8 [Exposed=(Window,Worker)]
      9 interface URLPattern {
     10  constructor(URLPatternInput input, USVString baseURL, optional URLPatternOptions options = {});
     11  constructor(optional URLPatternInput input = {}, optional URLPatternOptions options = {});
     12 
     13  boolean test(optional URLPatternInput input = {}, optional USVString baseURL);
     14 
     15  URLPatternResult? exec(optional URLPatternInput input = {}, optional USVString baseURL);
     16 
     17  readonly attribute USVString protocol;
     18  readonly attribute USVString username;
     19  readonly attribute USVString password;
     20  readonly attribute USVString hostname;
     21  readonly attribute USVString port;
     22  readonly attribute USVString pathname;
     23  readonly attribute USVString search;
     24  readonly attribute USVString hash;
     25 
     26  readonly attribute boolean hasRegExpGroups;
     27 };
     28 
     29 dictionary URLPatternInit {
     30  USVString protocol;
     31  USVString username;
     32  USVString password;
     33  USVString hostname;
     34  USVString port;
     35  USVString pathname;
     36  USVString search;
     37  USVString hash;
     38  USVString baseURL;
     39 };
     40 
     41 dictionary URLPatternOptions {
     42  boolean ignoreCase = false;
     43 };
     44 
     45 dictionary URLPatternResult {
     46  sequence<URLPatternInput> inputs;
     47 
     48  URLPatternComponentResult protocol;
     49  URLPatternComponentResult username;
     50  URLPatternComponentResult password;
     51  URLPatternComponentResult hostname;
     52  URLPatternComponentResult port;
     53  URLPatternComponentResult pathname;
     54  URLPatternComponentResult search;
     55  URLPatternComponentResult hash;
     56 };
     57 
     58 dictionary URLPatternComponentResult {
     59  USVString input;
     60  record<USVString, (USVString or undefined)> groups;
     61 };
     62 
     63 typedef (USVString or URLPatternInit or URLPattern) URLPatternCompatible;