Fix xlink prefix serialization. Final bits of tabination :)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@586 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
60b1aa01ba
commit
b67871091b
|
@ -797,10 +797,14 @@ function BatchCommand(text) {
|
||||||
attr = attrs.item(i);
|
attr = attrs.item(i);
|
||||||
if (attr.nodeValue != "") {
|
if (attr.nodeValue != "") {
|
||||||
//Opera bug turns N.N to N,N in some locales
|
//Opera bug turns N.N to N,N in some locales
|
||||||
if(window.opera && attr.nodeName == 'opacity' && /^\d+,\d+$/.test(attr.nodeValue)) {
|
if (window.opera && attr.nodeName == 'opacity' && /^\d+,\d+$/.test(attr.nodeValue)) {
|
||||||
attr.nodeValue = attr.nodeValue.replace(',','.');
|
attr.nodeValue = attr.nodeValue.replace(',','.');
|
||||||
}
|
}
|
||||||
out.push(" "); out.push(attr.nodeName); out.push("=\"");
|
out.push(" ");
|
||||||
|
if (attr.namespaceURI == 'http://www.w3.org/1999/xlink') {
|
||||||
|
out.push('xlink:');
|
||||||
|
}
|
||||||
|
out.push(attr.nodeName); out.push("=\"");
|
||||||
out.push(attr.nodeValue); out.push("\"");
|
out.push(attr.nodeValue); out.push("\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1324,7 +1328,7 @@ function BatchCommand(text) {
|
||||||
"opacity": cur_shape.opacity / 2
|
"opacity": cur_shape.opacity / 2
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
newImage.setAttributeNS(xlinkns, "href", "images/logo.png")
|
newImage.setAttributeNS(xlinkns, "href", "images/logo.png");
|
||||||
break;
|
break;
|
||||||
case "square":
|
case "square":
|
||||||
// FIXME: once we create the rect, we lose information that this was a square
|
// FIXME: once we create the rect, we lose information that this was a square
|
||||||
|
|
Loading…
Reference in New Issue