In theory it should be possible to run the VE data model on a server with a virtual DOM, but no jQuery.
Description
Details
Related Objects
- Mentioned Here
- rGVED0d1902e0497e: Localisation updates from https://translatewiki.net.
rGVED5742a48a34b3: Merge "eslint: Disable browser/jquery environment expectations in Node code"
rGVED7c9ceb939940: Merge "Create get/setSessionObject methods for JSON storage"
T178780: Single line breaks shown a little strangely
rGVEDd214a66aa922: Merge "Remove IE9 support comment"
Event Timeline
Change 434053 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] $.isEmptyObject -> ve.isEmptyObject
Change 434056 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Don't use $.isNumeric in DM
Change 434057 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Avoid more jQuery in DM
Change 434053 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] $.isEmptyObject -> ve.isEmptyObject
Change 434056 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Don't use $.isNumeric in DM
Change 434057 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Avoid more jQuery in DM
I've deleted APIResults* in https://gerrit.wikimedia.org/r/#/c/434659/ (they were downstreamed to MW a while ago).
That leaves:
- $.parseHTML in the DOMPurify code in ve.dm.Change. As that code only exists to protect clients, we could safely skip it on a server instance.
- Deferred/promise code in surface fragments. We'll need to make sure our promise usage is compatible with other promise libraries so we can abstract this to ve.Deferred / ve.when etc.
I also recently put in some hacks to call out to the CE node in #toDomElements, these may need to be refactored.
Change 434661 had a related patch set uploaded (by Jforrester; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (d214a66aa)
Change 434661 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (d214a66aa)
As of T178780 we have a reference to ve.ce.TextNode in ve.dm.Converter. This could probably be moved into a utility namespace
Change 462164 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Move whitespaceHtmlCharacters to ve.utils.js
Change 462164 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Move whitespaceHtmlCharacters to ve.utils.js and rename
Change 462321 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (7c9ceb939)
Change 462321 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (7c9ceb939)
Change 463235 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Avoid jQuery in ve.dm.Model.static.describeChange(s)
Change 463235 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Avoid jQuery in ve.dm.Model.static.describeChange(s)
Change 463299 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[VisualEditor/VisualEditor@master] eslint: Disable jquery environment expectation in DM code
Change 463355 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (5742a48a3)
Change 463355 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (5742a48a3)
Change 463299 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] eslint: Disable jQuery/browser environment expectation in DM code
Change 471985 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Abstract construction of Deferred objects and $.when
Change 463299 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] eslint: Disable jQuery/browser environment expectation in DM code
Change 471985 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] Abstract construction of Deferred objects and $.when
Change 472417 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (0d1902e04)
Change 472417 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (0d1902e04)
@Esanders: All related patches in Gerrit have been merged. Can this task be resolved (via Add Action... → Change Status in the dropdown menu), or is there more to do in this task? Asking as you are set as task assignee. Thanks in advance!