Web IDL mode
x
1
[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
2
interface HTMLImageElement : HTMLElement {
3
attribute DOMString alt;
4
attribute DOMString src;
5
attribute DOMString srcset;
6
attribute DOMString sizes;
7
attribute DOMString? crossOrigin;
8
attribute DOMString useMap;
9
attribute boolean isMap;
10
attribute unsigned long width;
11
attribute unsigned long height;
12
readonly attribute unsigned long naturalWidth;
13
readonly attribute unsigned long naturalHeight;
14
readonly attribute boolean complete;
15
readonly attribute DOMString currentSrc;
16
17
// also has obsolete members
18
};
19
20
partial interface HTMLImageElement {
21
attribute DOMString name;
22
attribute DOMString lowsrc;
23
attribute DOMString align;
24
attribute unsigned long hspace;
25
attribute unsigned long vspace;
26
attribute DOMString longDesc;
27
28
[TreatNullAs=EmptyString] attribute DOMString border;
29
};
30
MIME type defined: text/x-webidl
.