Page MenuHomePhabricator

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

Authored by epriestley on May 4 2020, 10:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 10:43 AM
Unknown Object (File)
Mon, Apr 1, 10:29 PM
Unknown Object (File)
Sun, Mar 31, 2:49 PM
Unknown Object (File)
Sun, Mar 31, 5:19 AM
Unknown Object (File)
Sun, Mar 31, 2:38 AM
Unknown Object (File)
Sun, Mar 31, 2:38 AM
Unknown Object (File)
Fri, Mar 29, 2:37 AM
Unknown Object (File)
Feb 21 2024, 10:26 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Branch
anchor1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24357
Build 33555: Run Core Tests
Build 33554: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 4 2020, 10:57 PM
This revision was automatically updated to reflect the committed changes.