Treesaver/treesaver — pull request #312 by zerodogg (2012-12-13 18:08:08+00:00)
Title: Add ID strings to debugging messages referring to DOM nodes

Added a method to the debug object that generates an identifying string (based on id, data-sizes or class) for a DOM node.
Helps identify which nodes are bing referred to, i.e. in "Zero-height block ignored" messages, so that it's easier to figure out what the problem might be.

"Zero-height block ignored"
becomes

"Zero-height block ignored: [object HTMLDivElement] (data-sizes=smallarticle fallback)"
which provides a lot more to go on.

Updated for coding style, and removed useless test for id.