Bug 849597 - Add more kung fu to nsParser. r=smaug.