this into a function so nsdom can use it. git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182064 18797224-902f-48f8-a5cc-f745e15eee43
this into a function so nsdom can use it. git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@182064 18797224-902f-48f8-a5cc-f745e15eee43