HTML DOM Heading Hierarchy

This is just a note for Future John. I was chatting to a friend on IRC who wanted to know how to extract the heading hierarchy from a HTML document. I wrote this code as a proof of concept implementation for him.

Leave a Reply