From fceea24883c76e71ad1a7eb17754d375f1b811e3 Mon Sep 17 00:00:00 2001 From: koenokatachi Date: Tue, 1 Sep 2015 18:01:48 +0300 Subject: [PATCH] add WBR to the list of self closing tags --- simple_html_dom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_html_dom.php b/simple_html_dom.php index 052096a..cb58aa2 100644 --- a/simple_html_dom.php +++ b/simple_html_dom.php @@ -997,7 +997,7 @@ class simple_html_dom public $default_span_text = ""; // use isset instead of in_array, performance boost about 30%... - protected $self_closing_tags = array('img'=>1, 'br'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1); + protected $self_closing_tags = array('img'=>1, 'br'=>1, 'wbr'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1); protected $block_tags = array('root'=>1, 'body'=>1, 'form'=>1, 'div'=>1, 'span'=>1, 'table'=>1); // Known sourceforge issue #2977341 // B tags that are not closed cause us to return everything to the end of the document.