1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
8 * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
9 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
10 * Opera Software ASA. You are granted a license to use, reproduce
11 * and create derivative works of this document.
14 // http://www.whatwg.org/specs/web-apps/current-work/#the-link-element
16 interface HTMLLinkElement : HTMLElement {
17 [HTMLConstructor] constructor();
19 [CEReactions, SetterThrows, Pure]
20 attribute boolean disabled;
21 [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows, Pure]
22 attribute DOMString href;
23 [CEReactions, SetterThrows, Pure]
24 attribute DOMString? crossOrigin;
25 [CEReactions, SetterThrows, Pure]
26 attribute DOMString rel;
28 readonly attribute DOMTokenList relList;
29 [CEReactions, SetterThrows, Pure]
30 attribute DOMString media;
31 [CEReactions, SetterThrows, Pure]
32 attribute DOMString hreflang;
33 [CEReactions, SetterThrows, Pure]
34 attribute DOMString type;
35 [CEReactions, SetterThrows, Pure]
36 attribute DOMString referrerPolicy;
37 [PutForwards=value] readonly attribute DOMTokenList sizes;
38 [CEReactions, SetterThrows, Pure]
39 attribute USVString imageSrcset;
40 [CEReactions, SetterThrows, Pure]
41 attribute USVString imageSizes;
43 HTMLLinkElement includes LinkStyle;
45 // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
46 partial interface HTMLLinkElement {
47 [CEReactions, SetterThrows, Pure]
48 attribute DOMString charset;
49 [CEReactions, SetterThrows, Pure]
50 attribute DOMString rev;
51 [CEReactions, SetterThrows, Pure]
52 attribute DOMString target;
55 // https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmllinkelement-1
56 partial interface HTMLLinkElement {
57 [CEReactions, SetterThrows]
58 attribute DOMString integrity;
61 //https://w3c.github.io/preload/
62 partial interface HTMLLinkElement {
64 attribute DOMString as;