Fix: Log HTMLDocument

This commit is contained in:
surunzi
2016-09-03 15:50:04 +08:00
parent f36f763cf9
commit ba6603904d

View File

@@ -215,7 +215,7 @@ export default function stringify(obj, {
// https://docs.webplatform.org/wiki/dom/HTMLAllCollection
// Might cause a performance issue when stringify a dom element.
json = wrapStr('[object HTMLAllCollection]');
} else if (type === '[object HTMLDocument]')
} else if (type === '[object HTMLDocument]' && level > 0)
{
// Same as reason above.
json = wrapStr('[object HTMLDocument]');