Symfony dom crawler with css selector is not finding all matches -


given following html

amzimg full html can found here: http://pastebin.com/b3jasxwx

and using dom crawler code

$pd->filter('.content > ul > li')->each(function(crawler $node, $i){}) 

when looping on results, it's stopping @ first <script> tag nested under <ul> element, , instead returning 9 elements, instead of 14 <li> elements.

is bug, or design, , there me <li> items without resorting preg_match?

i've implemented stripping out .* tags before feeding html symfony dom parser, seems have cured issue having.

given tags contained dom modifying code, i'm guessing symfony parser incorrectly reading dom tags inside tags valid tags, , not javascript modifications.

tl;dr - before passing raw html symfony, make sure strip out tags


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -