summaryrefslogtreecommitdiffstats
path: root/dom/webidl/HTMLImageElement.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl/HTMLImageElement.webidl')
-rw-r--r--dom/webidl/HTMLImageElement.webidl36
1 files changed, 19 insertions, 17 deletions
diff --git a/dom/webidl/HTMLImageElement.webidl b/dom/webidl/HTMLImageElement.webidl
index 243c65509..e50a9ef8e 100644
--- a/dom/webidl/HTMLImageElement.webidl
+++ b/dom/webidl/HTMLImageElement.webidl
@@ -16,25 +16,26 @@ interface imgIRequest;
interface URI;
interface nsIStreamListener;
-[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
+[HTMLConstructor,
+ NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString alt;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString src;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString srcset;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString? crossOrigin;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString useMap;
- [SetterThrows, Pref="network.http.enablePerElementReferrer"]
+ [CEReactions, SetterThrows, Pref="network.http.enablePerElementReferrer"]
attribute DOMString referrerPolicy;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute boolean isMap;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute unsigned long width;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute unsigned long height;
readonly attribute unsigned long naturalWidth;
readonly attribute unsigned long naturalHeight;
@@ -43,30 +44,31 @@ interface HTMLImageElement : HTMLElement {
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLImageElement {
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString name;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString align;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute unsigned long hspace;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute unsigned long vspace;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString longDesc;
- [TreatNullAs=EmptyString,SetterThrows] attribute DOMString border;
+ [CEReactions, TreatNullAs=EmptyString,SetterThrows] attribute DOMString border;
};
// [Update me: not in whatwg spec yet]
// http://picture.responsiveimages.org/#the-img-element
partial interface HTMLImageElement {
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute DOMString sizes;
readonly attribute DOMString currentSrc;
};
// Mozilla extensions.
partial interface HTMLImageElement {
+ [CEReactions]
attribute DOMString lowsrc;
// These attributes are offsets from the closest view (to mimic