mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 03:34:06 +00:00
dumpDOM debug function (not shipped) now accepts ID in addition to DOM elements.
This commit is contained in:
parent
d130654799
commit
a1e62f84ee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user