Go to file
Bartosz Dziewoński e5e6fdd3af Stop using native Range objects, they're too annoying
Native Range objects are automatically updated when the DOM elements
they refer to are affected (e.g. detached from the DOM, or their offset
changes because of siblings being added/removed).

This seemed harmless or maybe even slightly useful, but it turns out
it conflicts with VisualEditor, which has to wrap the entire page in a
new DOM node when it opens (and unwrap it when it closes), effectively
temporarily detaching it from the DOM, which destroys all our ranges.

Just use a plain object that stores the same data as a Range. And when
we need to use Range's API, we can simply construct a temporary one.

Bug: T241861
Change-Id: Iee64aa3d667877265ef8a59293c202e6478d7fb6
2020-02-05 19:42:03 +01:00
i18n Localisation updates from https://translatewiki.net. 2020-02-05 08:18:49 +01:00
includes Add config option and query parameter to control loading 2020-02-04 22:06:13 +01:00
maintenance Call Maintenance::requireExtension 2020-01-13 22:15:43 +01:00
modules Stop using native Range objects, they're too annoying 2020-02-05 19:42:03 +01:00
tests Handle comments before first section heading 2020-01-30 00:14:46 -08:00
.eslintrc.json build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
.gitignore Add .gitignore file 2019-10-10 21:21:00 +01:00
.gitreview Add .gitreview 2019-10-09 21:18:34 +00:00
.phpcs.xml build: Add missing .phpcs.xml and make pass 2020-01-13 20:48:11 +01:00
.stylelintrc.json build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 04:55:38 +00:00
CODE_OF_CONDUCT.md build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
composer.json build: Updating mediawiki/minus-x to 1.0.0 2020-01-29 03:41:40 +00:00
COPYING Add required files for an extension 2019-10-10 19:42:56 +01:00
extension.json Add config option and query parameter to control loading 2020-02-04 22:06:13 +01:00
Gruntfile.js build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
package-lock.json build: Updating npm dependencies 2020-01-09 06:43:15 +00:00
package.json build: Updating npm dependencies 2020-01-09 06:43:15 +00:00