Gave up on SimpleHTMLDOM, now trying to write my own lightweight html-parser.