Fixed Porting Error in HTML5lib Serializer

This commit is contained in:
Jacques Distler 2007-06-06 08:44:57 -05:00
parent 8846b2cda5
commit 0012efcfb4

View file

@ -266,7 +266,7 @@ class HTMLSerializer
elsif [:Characters, :SpaceCharacters].include? type
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"))
end
if encoding