Merging patch by me (from mozilla/htmlparser). Fix for bug 237186 (document.createAttribute, document.createElement, etc need to throw INVALID_CHARACTER_ERR for empty names). r/sr=jst, a=chofmann. git-svn-id: svn://10.0.0.236/trunk@155378 18797224-902f-48f8-a5cc-f745e15eee43