DOMURL.idl 1023 B

1234567891011121314151617181920212223242526272829
  1. #import <FileAPI/Blob.idl>
  2. #import <DOMURL/URLSearchParams.idl>
  3. // https://url.spec.whatwg.org/#url
  4. [Exposed=*, LegacyWindowAlias=webkitURL, ImplementedAs=DOMURL]
  5. interface URL {
  6. constructor(USVString url, optional USVString base);
  7. [ImplementedAs=parse_for_bindings] static DOMURL? parse(USVString url, optional USVString base);
  8. static boolean canParse(USVString url, optional USVString base);
  9. stringifier attribute USVString href;
  10. readonly attribute USVString origin;
  11. attribute USVString protocol;
  12. attribute USVString username;
  13. attribute USVString password;
  14. attribute USVString host;
  15. attribute USVString hostname;
  16. attribute USVString port;
  17. attribute USVString pathname;
  18. attribute USVString search;
  19. [SameObject] readonly attribute URLSearchParams searchParams;
  20. attribute USVString hash;
  21. USVString toJSON();
  22. static DOMString createObjectURL(Blob obj); // FIXME: Should be (Blob or MediaSource).
  23. static undefined revokeObjectURL(DOMString url);
  24. };