kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Merge branch 'master' of https://github.com/Jermolene/TiddlyWiki5
commit
b498726561
|
@ -263,9 +263,14 @@ Widget.prototype.assignAttributes = function(domNode,options) {
|
|||
v = undefined;
|
||||
}
|
||||
if(v !== undefined) {
|
||||
var b = a.split(":");
|
||||
// Setting certain attributes can cause a DOM error (eg xmlns on the svg element)
|
||||
try {
|
||||
domNode.setAttributeNS(null,a,v);
|
||||
if (b.length == 2 && b[0] == "xlink"){
|
||||
domNode.setAttributeNS("http://www.w3.org/1999/xlink",b[1],v);
|
||||
} else {
|
||||
domNode.setAttributeNS(null,a,v);
|
||||
}
|
||||
} catch(e) {
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue