It should not use plain firstChild() and assume it is Element or Text.
Created attachment 275761 [details] patch
http://trac.webkit.org/changeset/199097