nsIDOMHTMLImageElement.idl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsIDOMHTMLElement.idl"
  6. /**
  7. * The nsIDOMHTMLImageElement interface is the interface to a [X]HTML
  8. * img element.
  9. *
  10. * This interface is trying to follow the DOM Level 2 HTML specification:
  11. * http://www.w3.org/TR/DOM-Level-2-HTML/
  12. *
  13. * with changes from the work-in-progress WHATWG HTML specification:
  14. * http://www.whatwg.org/specs/web-apps/current-work/
  15. */
  16. [uuid(ec18e71c-4f5c-4cc3-aa36-5273168644dc)]
  17. interface nsIDOMHTMLImageElement : nsISupports
  18. {
  19. attribute DOMString alt;
  20. attribute DOMString src;
  21. attribute DOMString srcset;
  22. attribute DOMString sizes;
  23. attribute DOMString useMap;
  24. attribute boolean isMap;
  25. attribute unsigned long width;
  26. attribute unsigned long height;
  27. readonly attribute unsigned long naturalWidth;
  28. readonly attribute unsigned long naturalHeight;
  29. readonly attribute boolean complete;
  30. attribute DOMString name;
  31. attribute DOMString align;
  32. attribute DOMString border;
  33. attribute long hspace;
  34. attribute DOMString longDesc;
  35. attribute long vspace;
  36. attribute DOMString lowsrc;
  37. readonly attribute DOMString currentSrc;
  38. // These attributes are offsets from the closest view (to mimic
  39. // NS4's "offset-from-layer" behavior).
  40. readonly attribute long x;
  41. readonly attribute long y;
  42. };