Fix Maximum call stack size exceeded

when I use this content

"<html><head><title>TEST</title></head><body></body></html><p>hello jade test</p>"

I got an error message

for(key in internal_object) {
               ^
RangeError: Maximum call stack size exceeded