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
F15416045: D21222.id50544.diff
Thu, Mar 20, 8:55 AM
F15374901: D21222.id50541.diff
Wed, Mar 12, 8:30 PM
F15316134: D21222.id50544.diff
Thu, Mar 6, 6:23 PM
F15316132: D21222.id50541.diff
Thu, Mar 6, 6:23 PM
F15316127: D21222.diff
Thu, Mar 6, 6:22 PM
Unknown Object (File)
Sat, Feb 22, 12:33 PM
Unknown Object (File)
Feb 18 2025, 10:16 AM
Unknown Object (File)
Feb 9 2025, 6: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.