Menu

#83 <param> tag breaks down parser

closed
None
2018-12-06
2011-09-10
fogx
No

See attached file (test.php) for working example.
Simple_html_dom can't find closing tag and stops only after .

To fix this maybe you should add
'param'=>1
to
protected $self_closing_tags = array(...) (line 780)

Or another way - add
'object'=>1
to
protected $block_tags = array( ...) (line 781)

I don't know which way is correct, but they both work.
Thank you.

Discussion

  • fogx

    fogx - 2011-09-10
     
  • Diego Tremper

    Diego Tremper - 2013-06-11

    Fix this by adding 'param'=> 1.

    protected $self_closing_tags = array('img'=>1, 'br'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1, 'param'=>1);

     
  • LogMANOriginal

    LogMANOriginal - 2018-12-03
    • status: open --> closed
    • assigned_to: LogMANOriginal
    • Group: --> v1.0_(example)
     

Log in to post a comment.

MongoDB Logo MongoDB