Allows you to take an arbitrary URL fragment and find the target
element, as you would with querySelector(':target') for the current
fragment.
Useful for finding arbitrary fragments, or if the current URL
was set with history.pushState, in which case :target is not
updated.
Used in DiscussionTools (I4ccc3fd) and MobileFrontend (I48d7346).
Requires the web2017-polyfills to support all our JS environments,
but this is skipped on all modern browsers.
Bug: T315872
Change-Id: I605a24c708e60ccffde9dce524485f61fd5c7b06
Clarify docs and reasoning in the tests.
Add some line breaks.
Consistent comment formatting.
Add "NOTE" in both directions.
This is in prep for an implementation change to the JS version, to
detect/prevent regressions.
Change-Id: Iaae47c040e13dcb55b141e5bc8304e8d140ce04f
Some of these were outdated and predated modules that were combined,
split, or renamed (e.g. "mediawiki" no longer exists as a module,
we now have "startup" and "mediawiki.base").
Bug: T193826
Bug: T250045
Change-Id: I98a26c11651eacf727514e372ed12eadf17b4e7e
2022-07-14 21:59:16 -07:00
Renamed from tests/qunit/resources/mediawiki/mediawiki.util.test.js (Browse further)