dumpDOM debug function (not shipped) now accepts ID in addition to DOM elements.

This commit is contained in:
chanial%noos.fr 2003-12-19 02:03:29 +00:00
parent d130654799
commit a1e62f84ee

View File

@ -1673,6 +1673,9 @@ function dumpDOM (aElement, aIndent)
{
if (!aElement)
return;
if (typeof(aElement) == "string")
aElement = document.getElementById(aElement);
if (!aIndent)
aIndent = 0;
for (var i=0; i<aIndent*2; ++i)