Your fix seems to work for me :-)
Thanks for the fix, I'll try that. My previous version is "Version: 1.11 ($Rev: 175 $)", 2008 :-). The problem with "return false" is: without that statement it always returns a (empty) dom. When my code does something like "dom->find" on false, it crashes (false->find). Return false makes sense, but it is not backward compatible to my version.
Please also care to stay backwards compatible: The default for $stripRN should be false for that Also all my code crashed because of this, so I had to comment it out: // if (empty($str) || strlen($str) > MAX_FILE_SIZE) { // $dom->clear(); // return false; // }
I tried to fix this, but that is really hard. I have to switch to the really old version again, although I started get used to the new selector types. What I found so far: 1) in function seek text nodes should not be skipped: // Skip if node isn't a child node (i.e. text nodes) if($pass && $tag!='text' && !in_array($node, $node->parent->children, true)) { unset($node); continue; } 2) In function "parse" and "as_text_node" the begin-cursor should be set: $node = new simple_html_dom_node($this); $node->_[HDOM_INFO_BEGIN]...
find('text') does not work anymore in new versions
Add redo-Button
Important fix for CMakeLists.txt
I have the same problem, but dns lookup is already set to 1...