зеркало из https://github.com/mozilla/gecko-dev.git
dumpDOM debug function (not shipped) now accepts ID in addition to DOM elements.
This commit is contained in:
Родитель
d130654799
Коммит
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче