Sanitize <svg:image>

This element is unsafe.
This commit is contained in:
Jacques Distler 2007-10-29 13:51:41 -05:00
parent 9c55037626
commit eca126f589
2 changed files with 8 additions and 1 deletions

View file

@ -33,7 +33,7 @@ module HTML5
SVG_ELEMENTS = %w[a animate animateColor animateMotion animateTransform
circle defs desc ellipse font-face font-face-name font-face-src g
glyph hkern image linearGradient line marker metadata missing-glyph
glyph hkern linearGradient line marker metadata missing-glyph
mpath path polygon polyline radialGradient rect set stop svg switch
text title tspan use]

View file

@ -444,5 +444,12 @@
"rexml": "<rect fill=' '></rect>",
"xhtml": "<rect fill=' '></rect>",
"output": "<rect fill=' '/>"
},
{
"name": "allow_html5_image_tag",
"input": "<image src='foo' />",
"rexml": "&lt;image src=\"foo\"&gt;&lt;/image&gt;",
"output": "&lt;image src=\"foo\"/&gt;"
}
]