Sanitize url refs in SVG attributes
Add some tests. Sync with latest HTML5lib (includes above sanitization improvements).
This commit is contained in:
parent
ae82f1be49
commit
5208bbf0af
28 changed files with 1277 additions and 735 deletions
|
@ -144,7 +144,7 @@ module HTML5
|
|||
|
||||
elsif type == :Comment
|
||||
data = token[:data]
|
||||
serialize_error(_("Comment contains --")) if data.index("--")
|
||||
serialize_error("Comment contains --") if data.index("--")
|
||||
comment = "<!--%s-->" % token[:data]
|
||||
result << comment
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue