Skip to content

Commit

Permalink
Don't exclude header
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Aug 16, 2023
1 parent 234398e commit 028b7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/snapshot/snapshot-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class SnapshotView extends DOMView<SnapshotViewState, SnapshotViewData> {
// Create a flat outline array from the headings on the page
for (let heading of this._iframeDocument.body.querySelectorAll('h1, h2, h3, h4, h5, h6') as NodeListOf<HTMLElement>) {
// If the site uses semantic HTML, we can try to skip probably-irrelevant headings
if (heading.closest('aside, nav, header, footer, template, [hidden]')) {
if (heading.closest('aside, nav, footer, template, [hidden]')) {
continue;
}
if (!heading.innerText.trim()) {
Expand Down

0 comments on commit 028b7ae

Please sign in to comment.