0.2.0 • Published 8 years ago
ivi-dom v0.2.0
DOM Helpers
Browser Quirks
InnerHTML
function setInnerHTML(element: Element, content: string, isSVG: boolean): void;setInnerHTML() sets innerHTML property for HTML and SVG elements (IE doesn't have native innerHTML on SVG elements).
KeyboardEvent
function getEventCharCode(ev: KeyboardEvent): number;getEventCharCode() retrieves a normalized charCode from a KeyboardEvent.
function getEventKey(ev: KeyboardEvent): string;getEventKey() retrieves a key from a KeybordEvent with a fallback for browsers that doesn't support key property.
function getMouseButtons(ev: MouseEvent): number;getMouseButtons() retrieves a buttons property from a MouseEvent with a fallback implementation for Safari.