Fix another ill-Formedness hole

The html5lib sanitizer does not necessarily produce well-formed output.
Take some "bad" input, wrap it in a <nowiki> tag and -- bingo! -- you get
ill-formed output.

Fixed. (Though, probably, one should fix the html5lib sanitizer, instead.)
This commit is contained in:
Jacques Distler 2008-11-30 21:44:52 -06:00
parent af8157130a
commit 758325923f
2 changed files with 16 additions and 1 deletions

View file

@ -24,4 +24,10 @@ class NoWikiTest < Test::Unit::TestCase
)
end
def test_sanitize_nowiki_ill_formed
match(NoWiki, "<nowiki><animateColor xlink:href='#foo'/></nowiki>",
:plain_text => "<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink;'>HTML parse error:\n&lt;animateColor xlink:href=&#39;#foo&#39;&gt;&lt;/animateColor&gt;</pre>"
)
end
end