HTMLElement DOM interface

interface HTMLElement : Element {
  // DOM tree accessors
  NodeList getElementsByClassName(in DOMString[] classNames);

  // Dynamic markup insertion
   attribute DOMString innerHTML;

  // Metadata attributes
   attribute DOMString id;
   attribute DOMString title;
   attribute DOMString lang;
   attribute DOMString dir;
   attribute DOMTokenString className;

  // Interaction
  attribute long tabindex;
  void click();
  void focus();
  void blur();

  // Commands
  attribute HTMLMenuElement contextMenu;

  // Editing
  attribute boolean draggable;
  attribute DOMString contenteditable;

  // event handler DOM attributes
  attribute EventListener onclick;
           ...more events...
};

Previous | Next | Top | Cafe con Leche

Copyright 2007 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 4, 2007