Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 056c849

Browse files
bradyisomIgorMinar
authored andcommittedDec 28, 2013
fix($sanitize): consider size attribute as valid/allowed attribute
The "size" attribute gets set on <font> elements when using HTML5 rich text editors, or elements with the contenteditable attribute, that rely on the 'fontSize' command (execCommand). Closes #5522
1 parent 7d6e5a2 commit 056c849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ngSanitize/sanitize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ var validAttrs = angular.extend({}, uriAttrs, makeMap(
206206
'abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,'+
207207
'color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,'+
208208
'ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,'+
209-
'scope,scrolling,shape,span,start,summary,target,title,type,'+
209+
'scope,scrolling,shape,size,span,start,summary,target,title,type,'+
210210
'valign,value,vspace,width'));
211211

212212
function makeMap(str) {

0 commit comments

Comments
 (0)