mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Normalizer wasn't working with attributes without values
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user