Skip to content

Conversation

zerodogg
Copy link

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.

Can be used to help identify elementents that are being referred
to in debugging messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant