Fix support for SVG in WebKit browsers

WebKit browsers don't currently appear to support Element.children.
Hence errors are produced in translateElement when SVG elements
(including inline SVG) are encountered.