There doesn't seem to be a way in jQuery to tell if a node is a header, i.e., h1, h2, h3, h4, h5, or h6. I'd like to write something like:
hNode$ = $(node).closest('h');
if(hNode$.length >0){
hNode$.css('padding-top', '+=' + 1);
}
where I bump the top padding if the selected line is a header.
Am I missing something?
Thanks