html5 元素通用dom接口
interface htmlelement : element {
// dom treeaccessors
nodelistgetelementsbyclassname(in domstring classnames);
// dynamic markup insertion
attribute domstring innerhtml;
attribute domstring outerhtml;
void insertadjacenthtml(in domstring position, in domstring text);
// metadata attributes
attribute domstring id;
attribute domstring title;
attribute domstring lang;
attribute domstring dir;
attribute domstring classname;
readonly attribute domtokenlist classlist;
readonly attribute domstringmap dataset;
// user interaction
attribute boolean hidden;
void click();
void scrollintoview();
void scrollintoview(in boolean top);
attribute long tabindex;
void focus();
void blur();
attribute domstring accesskey;
readonly attribute domstring accesskeylabel;
attribute boolean draggable;
attribute domstring contenteditable;
readonly attribute boolean iscontenteditable;
attribute htmlmenuelement contextmenu;
attribute boolean spellcheck;
// command api
readonly attribute domstring commandtype;
readonly attribute domstring label;
readonly attribute domstring icon;
readonly attribute boolean disabled;
readonly attribute boolean checked;
// styling
readonly attribute cssstyledeclaration style;
// event handler idlattributes
attribute function onabort;
attribute function onblur;
attribute function oncanplay;
attribute function oncanplaythrough;
attribute function onchange;
attribute function onclick;
attribute function oncontextmenu;
attribute function ondblclick;
attribute function ondrag;
attribute function ondragend;
attribute function ondragenter;
attribute function ondragleave;
attribute function ondragover;
attribute function ondragstart;
attribute function ondrop;
attribute function ondurationchange;
attribute function onemptied;
attribute function onended;
attribute function onerror;
attribute function onfocus;
attribute function onformchange;
attribute function onforminput;
attribute function oninput;
attribute function oninvalid;
attribute function onkeydown;
attribute function onkeypress;
attribute function onkeyup;
attribute function onload;
attribute function onloadeddata;
attribute function onloadedmetadata;
attribute function onloadstart;
attribute function onmousedown;
attribute function onmousemove;
attribute function onmouseout;
attribute function onmouseover;
attribute function onmouseup;
attribute function onmousewheel;
attribute function onpause;
attribute function onplay;
attribute function onplaying;
attribute function onprogress;
attribute function onratechange;
attribute function onreadystatechange;
attribute function onreset;
attribute function onscroll;
attribute function onseeked;
attribute function onseeking;
attribute function onselect;
attribute function onshow;
attribute function onstalled;
attribute function onsubmit;
attribute function onsuspend;
attribute function ontimeupdate;
attribute function onvolumechange;
attribute function onwaiting;
};