HTMLLinkElement.idl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #import <CSS/LinkStyle.idl>
  2. #import <Fetch/Request.idl>
  3. #import <HTML/HTMLElement.idl>
  4. #import <HTML/Scripting/Fetching.idl>
  5. // https://fetch.spec.whatwg.org/#concept-potential-destination
  6. enum PotentialDestination {
  7. "",
  8. "audio",
  9. "audioworklet",
  10. "document",
  11. "embed",
  12. "font",
  13. "frame",
  14. "iframe",
  15. "image",
  16. "json",
  17. "manifest",
  18. "object",
  19. "paintworklet",
  20. "report",
  21. "script",
  22. "serviceworker",
  23. "sharedworker",
  24. "style",
  25. "track",
  26. "video",
  27. "webidentity",
  28. "worker",
  29. "xslt",
  30. "fetch"
  31. };
  32. // https://html.spec.whatwg.org/multipage/semantics.html#htmllinkelement
  33. [Exposed=Window]
  34. interface HTMLLinkElement : HTMLElement {
  35. [HTMLConstructor] constructor();
  36. [CEReactions, Reflect, URL] attribute USVString href;
  37. [CEReactions, Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
  38. [CEReactions, Reflect] attribute DOMString rel;
  39. [CEReactions, Reflect, Enumerated=PotentialDestination] attribute DOMString as;
  40. [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
  41. [CEReactions, Reflect] attribute DOMString media;
  42. [CEReactions, Reflect] attribute DOMString integrity;
  43. [CEReactions, Reflect] attribute DOMString hreflang;
  44. [CEReactions, Reflect] attribute DOMString type;
  45. [SameObject, PutForwards=value] readonly attribute DOMTokenList sizes;
  46. [CEReactions, Reflect=imagesrcset] attribute USVString imageSrcset;
  47. [CEReactions, Reflect=imagesizes] attribute DOMString imageSizes;
  48. [CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
  49. [FIXME, SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
  50. [CEReactions, Reflect] attribute boolean disabled;
  51. [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
  52. // Obsolete
  53. [CEReactions, Reflect] attribute DOMString charset;
  54. [CEReactions, Reflect] attribute DOMString rev;
  55. [CEReactions, Reflect] attribute DOMString target;
  56. };
  57. // FIXME: HTMLLinkElement includes LinkStyle;