webstruct
webstruct copied to clipboard
add element's relative position feature of its parent
i.e.
parent = elem.getparent()
pos = parent.index(elem)
this should capture the case where first element is the subject and second is the content