minor change so we don't have two variables named "attrName" and "attrname", and make it more explicit that these are style-related attributes.
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2380 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5dcdc76912
commit
7f560c0ed1
|
@ -206,11 +206,11 @@ svgedit.sanitize.sanitizeSvg = function(node) {
|
||||||
p = props.length;
|
p = props.length;
|
||||||
while(p--) {
|
while(p--) {
|
||||||
var nv = props[p].split(":");
|
var nv = props[p].split(":");
|
||||||
var attrname = $.trim(nv[0]);
|
var styleAttrName = $.trim(nv[0]);
|
||||||
var attrval = $.trim(nv[1]);
|
var styleAttrVal = $.trim(nv[1]);
|
||||||
// Now check that this attribute is supported
|
// Now check that this attribute is supported
|
||||||
if (allowedAttrs.indexOf(attrname) >= 0) {
|
if (allowedAttrs.indexOf(styleAttrName) >= 0) {
|
||||||
node.setAttribute(attrname, attrval);
|
node.setAttribute(styleAttrName, styleAttrVal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node.removeAttribute('style');
|
node.removeAttribute('style');
|
||||||
|
|
Loading…
Reference in New Issue