DOMURL.idl 922 B

12345678910111213141516171819202122232425262728
  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. static boolean canParse(USVString url, optional USVString base);
  8. stringifier attribute USVString href;
  9. readonly attribute USVString origin;
  10. attribute USVString protocol;
  11. attribute USVString username;
  12. attribute USVString password;
  13. attribute USVString host;
  14. attribute USVString hostname;
  15. attribute USVString port;
  16. attribute USVString pathname;
  17. attribute USVString search;
  18. [SameObject] readonly attribute URLSearchParams searchParams;
  19. attribute USVString hash;
  20. USVString toJSON();
  21. static DOMString createObjectURL(Blob obj); // FIXME: Should be (Blob or MediaSource).
  22. static undefined revokeObjectURL(DOMString url);
  23. };