-- adding code to handle multiple children, per element node
-- fixed a bug, handling brackets and pseudo classes on elements