Content deleted Content added
Mike Dillon (talk | contribs) use setAttributeNS instead of setAttribute |
Mike Dillon (talk | contribs) fix broken browsers without createElementNS |
||
(3 intermediate revisions by the same user not shown) | |||
Line 22:
"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", "fieldset", "legend"
];
Line 39:
// Settings
var settings = {
"namespaceUri": "http://www.w3.org/1999/xhtml",
"invokeFunctions": true,
"tagNames": defaultTagNames,
"eventTypes": defaultEventTypes
};
Line 50:
settings[p] = options[p];
}
}
// If the browser doesn't understand createElementNS, fake it (God help them...)
if (isUndefined(document.createElementNS)) {
document.createElementNS = function (ns, name) {
return document.createElement(name);
};
}
Line 74 ⟶ 81:
// Set the attribute
elem.
};
|