Sanitize <svg:image>
This element is unsafe.
This commit is contained in:
parent
9c55037626
commit
eca126f589
|
@ -33,7 +33,7 @@ module HTML5
|
||||||
|
|
||||||
SVG_ELEMENTS = %w[a animate animateColor animateMotion animateTransform
|
SVG_ELEMENTS = %w[a animate animateColor animateMotion animateTransform
|
||||||
circle defs desc ellipse font-face font-face-name font-face-src g
|
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
|
mpath path polygon polyline radialGradient rect set stop svg switch
|
||||||
text title tspan use]
|
text title tspan use]
|
||||||
|
|
||||||
|
|
|
@ -444,5 +444,12 @@
|
||||||
"rexml": "<rect fill=' '></rect>",
|
"rexml": "<rect fill=' '></rect>",
|
||||||
"xhtml": "<rect fill=' '></rect>",
|
"xhtml": "<rect fill=' '></rect>",
|
||||||
"output": "<rect fill=' '/>"
|
"output": "<rect fill=' '/>"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "allow_html5_image_tag",
|
||||||
|
"input": "<image src='foo' />",
|
||||||
|
"rexml": "<image src=\"foo\"></image>",
|
||||||
|
"output": "<image src=\"foo\"/>"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue