2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: Normalizer wasn't working with attributes without values

This commit is contained in:
Robin Ward 2017-11-02 14:11:20 -04:00
parent 5a55ce65f3
commit 64cb8a3ce3
2 changed files with 9 additions and 3 deletions

View file

@ -7,6 +7,10 @@ describe HtmlNormalize do
HtmlNormalize.normalize(html)
end
it "handles attributes without values" do
expect(n "<img alt>").to eq("<img alt>")
end
it "handles self closing tags" do
source = <<-HTML