Element.idl 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. [LegacyNullToEmptyString] attribute DOMString innerHTML;
  14. [Reflect] attribute DOMString id;
  15. [Reflect=class] attribute DOMString className;
  16. readonly attribute Element? nextElementSibling;
  17. readonly attribute Element? previousElementSibling;
  18. [ImplementedAs=style_for_bindings] readonly attribute CSSStyleDeclaration style;
  19. // FIXME: These should all come from a ParentNode mixin
  20. readonly attribute Element? firstElementChild;
  21. readonly attribute Element? lastElementChild;
  22. readonly attribute unsigned long childElementCount;
  23. Element? querySelector(DOMString selectors);
  24. ArrayFromVector querySelectorAll(DOMString selectors);
  25. };