HomePhabricator

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, 10:48 PM
epriestleyPushed on May 4 2020, 10:57 PM
Differential Revision
D21222: Fix a JS issue when the anchor element on a page has no container
Parents
rP6430d6d638eb: Fix an intradiff error when the newer changeset does not exist
Branches
Unknown
Tags
Unknown
Build Status
Buildable 24360
Build 33558: Run Core Tests