nanotube/generated_toc — pull request #1 by henix (2012-05-22 07:51:23+00:00)
Title: use document.body instead of getElementsByTagName

"document.getElementsByTagName('body')" will return an array, which will cause an error when configed as "generate_for_page" at line 171 on Firefox: top_node.getElementsByTagName('*').

Because an array doesn't have function "getElementsByTagName".

The correct usage should be "document.getElementsByTagName('body')[0]" , or as I write, "document.body"