@@ -18,9 +18,11 @@ interface URI;
18
18
interface nsIStreamListener;
19
19
*/
20
20
21
- [HTMLConstructor ,
22
- NamedConstructor= Image (optional unsigned long width, optional unsigned long height) ]
21
+ [NamedConstructor= Image (optional unsigned long width, optional unsigned long height) ,
22
+ Exposed= Window ]
23
23
interface HTMLImageElement : HTMLElement {
24
+ [HTMLConstructor] constructor();
25
+
24
26
[CEReactions, SetterThrows]
25
27
attribute DOMString alt;
26
28
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
@@ -39,9 +41,13 @@ interface HTMLImageElement : HTMLElement {
39
41
attribute unsigned long width;
40
42
[CEReactions, SetterThrows]
41
43
attribute unsigned long height;
44
+ [CEReactions, SetterThrows]
45
+ attribute DOMString decoding;
42
46
readonly attribute unsigned long naturalWidth;
43
47
readonly attribute unsigned long naturalHeight;
44
48
readonly attribute boolean complete;
49
+ [NewObject]
50
+ Promise< void> decode();
45
51
};
46
52
47
53
// http:// www.whatwg.org/ specs/ web- apps/ current- work/ #other- elements,- attributes- and - apis
@@ -57,7 +63,7 @@ partial interface HTMLImageElement {
57
63
[CEReactions, SetterThrows]
58
64
attribute DOMString longDesc;
59
65
60
- [CEReactions, TreatNullAs=EmptyString, SetterThrows] attribute DOMString border;
66
+ [CEReactions, SetterThrows] attribute [TreatNullAs=EmptyString] DOMString border;
61
67
};
62
68
63
69
// [Update me: not in whatwg spec yet]
0 commit comments