HomePhorge

Fix a JS issue when the anchor element on a page has no container

Description

Fix a JS issue when the anchor element on a page has no container

Summary: See D21213. If there's no matching element, findAbove() throws. Handle these cases correctly.

Test Plan: Visited #toc on a revision, no longer saw a JS error.

Differential Revision: https://secure.phabricator.com/D21222

Details

Provenance
epriestleyAuthored on May 4 2020, 3:48 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP6430d6d638eb: Fix an intradiff error when the newer changeset does not exist
Branches
Unknown
Tags
Unknown

Event Timeline