Element.idl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. interface Element : Node {
  2. readonly attribute DOMString? namespaceURI;
  3. readonly attribute DOMString? prefix;
  4. readonly attribute DOMString localName;
  5. readonly attribute DOMString tagName;
  6. DOMString? getAttribute(DOMString qualifiedName);
  7. undefined setAttribute(DOMString qualifiedName, DOMString value);
  8. undefined removeAttribute(DOMString qualifiedName);
  9. boolean hasAttribute(DOMString qualifiedName);
  10. boolean hasAttributes();
  11. HTMLCollection getElementsByTagName(DOMString tagName);
  12. HTMLCollection getElementsByClassName(DOMString className);
  13. // FIXME: This should come from a InnerHTML mixin.
  14. [LegacyNullToEmptyString, CEReactions] attribute DOMString innerHTML;
  15. [Reflect] attribute DOMString id;
  16. [Reflect=class] attribute DOMString className;
  17. readonly attribute Element? nextElementSibling;
  18. readonly attribute Element? previousElementSibling;
  19. [ImplementedAs=style_for_bindings] readonly attribute CSSStyleDeclaration style;
  20. // FIXME: These should all come from a ParentNode mixin
  21. readonly attribute Element? firstElementChild;
  22. readonly attribute Element? lastElementChild;
  23. readonly attribute unsigned long childElementCount;
  24. Element? querySelector(DOMString selectors);
  25. ArrayFromVector querySelectorAll(DOMString selectors);
  26. [SameObject] readonly attribute HTMLCollection children;
  27. };