Fixed Porting Error in HTML5lib Serializer
This commit is contained in:
parent
8846b2cda5
commit
0012efcfb4
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ class HTMLSerializer
|
||||||
|
|
||||||
elsif [:Characters, :SpaceCharacters].include? type
|
elsif [:Characters, :SpaceCharacters].include? type
|
||||||
if type == :SpaceCharacters or in_cdata
|
if type == :SpaceCharacters or in_cdata
|
||||||
if in_cdata and token[:data].find("</") >= 0
|
if in_cdata and token[:data].include?("</")
|
||||||
serializeError(_("Unexpected </ in CDATA"))
|
serializeError(_("Unexpected </ in CDATA"))
|
||||||
end
|
end
|
||||||
if encoding
|
if encoding
|
||||||
|
|
Loading…
Add table
Reference in a new issue