2011-12-21, 00:25
ventech Wrote:two questions:
1. is there no notion of a tree in this dom parser? Say i want to get an element based on some info from one of it's children. In beautiful soup you just walk to the parent, but how can i do this with parseDOM?
2. Is it possible to use regex in attributes? E.g. I want to match the class "somethingsomething-toggle-something" so I write {"class":".*toggle.*"} but it seems to just completely ignore the attribute and match everything.
1. There is no way to "Walk" the tree.
2. It should be possible to do "toggle.*". I will investigate and fix for 0.9.1.