Update to latest HTML5lib

Fix that Tokenizer bug for real this time.
This commit is contained in:
Jacques Distler 2007-09-09 22:26:19 -05:00
parent f3a89556c4
commit ed68d975df
53 changed files with 11569 additions and 2603 deletions

View file

@ -50,7 +50,7 @@ module HTML5
when :EndTag
if token[:data]
parse_error(_("End tag contains unexpected attributes."))
parse_error("attributes-in-end-tag")
end
when :Comment
@ -81,7 +81,7 @@ module HTML5
# open and close tags are emitted
if token[:type] == :EndTag
if VOID_ELEMENTS.include? token[:name]
if @tree.open_elements[-1].name != token["name"]:
if @tree.open_elements[-1].name != token["name"]
token[:type] = :EmptyTag
token["data"] ||= {}
end