OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 */ | 20 */ |
21 | 21 |
| 22 // https://html.spec.whatwg.org/#htmllinkelement |
| 23 |
22 interface HTMLLinkElement : HTMLElement { | 24 interface HTMLLinkElement : HTMLElement { |
| 25 // FIXME: The disabled attribute has been removed from the spec: |
| 26 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=14703 |
23 [Reflect] attribute boolean disabled; | 27 [Reflect] attribute boolean disabled; |
24 [Reflect] attribute DOMString charset; | |
25 [Reflect, URL] attribute DOMString href; | 28 [Reflect, URL] attribute DOMString href; |
26 [Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymo
us", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin; | 29 [Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymo
us", ReflectInvalid="anonymous"] attribute DOMString? crossOrigin; |
| 30 [Reflect] attribute DOMString rel; |
| 31 // FIXME: readonly attribute DOMTokenList relList; |
| 32 [Reflect] attribute DOMString media; |
27 [Reflect] attribute DOMString hreflang; | 33 [Reflect] attribute DOMString hreflang; |
28 [Reflect] attribute DOMString media; | 34 [Reflect] attribute DOMString type; |
29 [Reflect] attribute DOMString rel; | 35 [PutForwards=value] readonly attribute DOMSettableTokenList sizes; |
| 36 |
| 37 // obsolete members |
| 38 // https://html.spec.whatwg.org/#HTMLLinkElement-partial |
| 39 [Reflect] attribute DOMString charset; |
30 [Reflect] attribute DOMString rev; | 40 [Reflect] attribute DOMString rev; |
31 [PutForwards=value] readonly attribute DOMSettableTokenList sizes; | |
32 [Reflect] attribute DOMString target; | 41 [Reflect] attribute DOMString target; |
33 [Reflect] attribute DOMString type; | |
34 | 42 |
35 // DOM Level 2 Style | 43 // HTMLLinkElement implements LinkStyle |
36 readonly attribute StyleSheet sheet; | 44 // http://dev.w3.org/csswg/cssom/#the-linkstyle-interface |
| 45 readonly attribute StyleSheet? sheet; |
37 | 46 |
38 readonly attribute Document import; | 47 // HTML Imports |
| 48 // https://w3c.github.io/webcomponents/spec/imports/#interface-import |
| 49 readonly attribute Document? import; |
39 | 50 |
| 51 // Subresource Integrity |
| 52 // http://w3c.github.io/webappsec/specs/subresourceintegrity/#htmllinkelemen
t-1 |
40 [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity
; | 53 [Reflect, RuntimeEnabled=SubresourceIntegrity] attribute DOMString integrity
; |
41 }; | 54 }; |
OLD | NEW |