Home pcDTR Forum
If you like the work i do, you know what to do.
Welcome, Guest
Please Login or Register.    Lost Password?

Not rendering...
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Not rendering...
#194
Not rendering... 4 Months, 4 Weeks ago Karma: 0
Is there any reason why this selector "div.module.chocolates div div div h3" would not get rendered ? It appears that targeted classes do not work independently of base header tags (ex:
h3.header will not convert unless the style is applied to all h3 tags).
John
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/03 23:50 By John.
The administrator has disabled public write access.
 
#196
Re:Not rendering... 4 Months, 2 Weeks ago Karma: 2
pcDTR uses simplehtmldom.sourceforge.net/manual.htm to find selectors.

So maybe its a limitation in it. But it should work.

// Find Nested <div> tags
$es = $html->find('div div div');

// Find all <td> in <table> which class=hello
$es = $html->find('table.hello td');

Haven't tried to many nested selectors.
flowman
Admin
Posts: 110
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Banner
Copyright © 2010 pcDTR. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.