Skip to content

Commit

Permalink
add WBR to the list of self closing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
koenokatachi committed Sep 1, 2015
1 parent 842b3fc commit fceea24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple_html_dom.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fceea24

Please sign in to comment.