support basic svg elements

I had to remove usage of `.children` too because phantomJS and safari don't seem to support it for svg elements.