Bug 850931.  r=roc
Fix for bug 852954 (Split nsHTMLDocument::ResolveName). r=bz.

--HG--
extra : rebase_source : 93210d0a59ea901e290ad52cd79cdb7c7ea6bbc3