Ignore casing when testing for html void elements

Fixes #36
This commit is contained in:
Tero Tasanen committed 2014-09-14 12:02:02 +03:00
1 parent ee538ddcc2
commit 9f71b1ec7b
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -347,7 +347,7 @@ module Oga
# Called on the closing `>` of the open tag of an element.
#
def on_element_open_end
if html? and HTML_VOID_ELEMENTS.include?(current_element)
if html? and HTML_VOID_ELEMENTS.include?(current_element.downcase)
add_token(:T_ELEM_END)
@elements.pop
end