Bug 319821 - Use document.documentElement instead of document.firstChild to handle changes due to be made by bug 319654.

ChatZilla only.
r=samuel


git-svn-id: svn://10.0.0.236/trunk@185914 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk
2005-12-11 16:29:15 +00:00
parent da49bd1e02
commit 5d076a42a7

View File

@@ -255,8 +255,8 @@ function cmgr_instkeys (document, commands)
if (!parentElem)
{
parentElem = document.createElement("keyset");
parentElem.setAttribute ("id", "dynamic-keys");
document.firstChild.appendChild (parentElem);
parentElem.setAttribute("id", "dynamic-keys");
document.documentElement.appendChild(parentElem);
}
if (!commands)