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:
parent
5a55ce65f3
commit
64cb8a3ce3
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue