User:Mike Dillon/Scripts/easydom.js: Difference between revisions

Content deleted Content added
m add "style" tag to HTML defaults
No edit summary
Line 17:
// Default tag names to be installed into the namespace as functions
var defaultTagNames = [
"tablebdo", "tbodyscript", "tfootstyle", "trobject", "thparam", "tdiframe", "collink", "colgroupmeta", "captionp",
"bdo",
"pre", "a", "div", "span", "ul", "ol", "li", "img", "hr", "br", "em", "strong",
"script", "style",
"emsup", "strongsub", "suptt", "subabbr", "ttacronym", "abbrdel", "acronymins", "cite", "blockquote",
"object", "param",
"code", "table", "tbody", "tfoot", "tr", "th", "td", "col", "colgroup", "caption",
"iframe",
"link", "meta",
"p", "pre",
"a",
"div", "span",
"ul", "ol", "li",
"img",
"hr",
"br",
"em", "strong", "sup", "sub", "tt", "abbr", "acronym",
"del", "ins", "cite", "blockquote", "code",
"table", "tbody", "tfoot", "tr", "th", "td", "col", "colgroup", "caption",
"form", "input", "select", "option", "optgroup", "button", "textarea",
"h1", "h2", "h3", "h4", "h5", "h6", "label", "canvas"
"label",
"canvas"
];
 
Line 52 ⟶ 39:
// Settings
var settings = {
"namespaceUri": "http://www.w3.org/1999/xhtml",
invokeFunctions: true,
 
"invokeFunctions"tagNames: truedefaultTagNames,
"eventTypes": defaultEventTypes
 
"tagNames": defaultTagNames,
 
"eventTypes": defaultEventTypes
};
 
Line 70 ⟶ 54:
// Creates the DOM element
var createDomElement = function(name) {
var elem =return document.createElementNS(settings.namespaceUri, name);
return elem;
};