@@ -221,7 +221,7 @@ var htmlAttrs = makeMap('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspac
221
221
222
222
// SVG attributes (without "id" and "name" attributes)
223
223
// https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes
224
- var svgAttrs = makeMap ( 'accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' +
224
+ var svgAttrs = makeLowercaseMap ( 'accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' +
225
225
'attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,' +
226
226
'color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,' +
227
227
'font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,' +
@@ -249,6 +249,12 @@ function makeMap(str) {
249
249
return obj ;
250
250
}
251
251
252
+ function makeLowercaseMap ( str ) {
253
+ var obj = { } , items = str . split ( ',' ) , i ;
254
+ for ( i = 0 ; i < items . length ; i ++ ) obj [ angular . lowercase ( items [ i ] ) ] = true ;
255
+ return obj ;
256
+ }
257
+
252
258
253
259
/**
254
260
* @example
0 commit comments