Page MenuHomePhabricator

Uncaught TypeError when typing at end a line when page contains <ref> with heading
Closed, ResolvedPublic

Description

  1. Open https://www.mediawiki.org/wiki/VisualEditor/Basic_example_worksheet and edit in VE.
  2. Scroll to "GLaDOS was making a note here." and click after the end of this to place the cursor.
  3. Type a full stop (.)

Actual result:

Uncaught TypeError: this.root is null
    onSetup :1147
    emit jQuery
    setLive :444
    setLive :455
    setLive :455
    updatePreview :847
    setModel :846
    setModel :1122
    VeUiPreviewElement :846
    VeUiMwPreviewElement

That page is quite large, so I narrowed it down to this minimal test case

Event Timeline

Change 715076 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] ve.ce.MWHeadingNode: Fix Uncaught TypeError: this.root is null

https://gerrit.wikimedia.org/r/715076

Change 715076 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ve.ce.MWHeadingNode: Fix Uncaught TypeError: this.root is null

https://gerrit.wikimedia.org/r/715076

ppelberg claimed this task.