From 3c6263d8de30b91aac7c3b16b65f00407b88fc13 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 21 May 2015 21:11:41 +0200 Subject: [PATCH] Updated list of elements that close

tags --- lib/oga/xml/lexer.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/oga/xml/lexer.rb b/lib/oga/xml/lexer.rb index ddb7df1..460b167 100644 --- a/lib/oga/xml/lexer.rb +++ b/lib/oga/xml/lexer.rb @@ -59,8 +59,9 @@ module Oga 'dt' => Blacklist.new(%w{dt dd}), 'dd' => Blacklist.new(%w{dt dd}), 'p' => Blacklist.new(%w{ - address article aside blockquote div dl fieldset footer form h1 h2 h3 - h4 h5 h6 header hgroup hr main nav ol p pre section table ul + address article aside blockquote details div dl fieldset figcaption + figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr main menu nav + ol p pre section table ul }), 'rb' => Blacklist.new(%w{rb rt rtc rp}), 'rt' => Blacklist.new(%w{rb rt rtc rp}),