URL.idl 741 B

123456789101112131415161718192021222324
  1. #import <URL/URLSearchParams.idl>
  2. // https://url.spec.whatwg.org/#url
  3. [Exposed=*, LegacyWindowAlias=webkitURL, UseNewAKString]
  4. interface URL {
  5. constructor(USVString url, optional USVString base);
  6. static boolean canParse(USVString url, optional USVString base);
  7. stringifier attribute USVString href;
  8. readonly attribute USVString origin;
  9. attribute USVString protocol;
  10. attribute USVString username;
  11. attribute USVString password;
  12. attribute USVString host;
  13. attribute USVString hostname;
  14. attribute USVString port;
  15. attribute USVString pathname;
  16. attribute USVString search;
  17. [SameObject] readonly attribute URLSearchParams searchParams;
  18. attribute USVString hash;
  19. USVString toJSON();
  20. };