mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
f11fbee278
Add a parentDoc parameter to the MWReferenceModel constructor and use it to inherit language, direction and HTML document. Remove getLang(), setLang(), getDir() and setDir() whose only purpose was to propagate the language and direction from the parent document in a hacky way. This causes ReferenceModel documents to always have an HTML document for URL resolution. Previously, this worked when editing existing references because the newFromReferenceNode() code path calls cloneFromRange() which propagates the HTML document, but it didn't work when creating new references. Bug: T109599 Change-Id: I5d9d34d4343be8428318fa0b795fa54c110e34f4 |
||
---|---|---|
.. | ||
annotations | ||
metaitems | ||
models | ||
nodes |