Last modified: 2014-09-10 19:01:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72571, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70571 - VisualEditor: After removing the Template:Top,trying to place cursor on content throws TypeError: Cannot read property 'Left'/'right'/'start' of null
VisualEditor: After removing the Template:Top,trying to place cursor on conte...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-08 19:06 UTC by Rummana Yasmeen
Modified: 2014-09-10 19:01 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot (159.30 KB, image/png)
2014-09-08 19:06 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-09-08 19:06:19 UTC
Created attachment 16406 [details]
Screenshot

Steps to reproduce:

1.Open a page with VE
2.Insert a template Top, specify a bg color code so you can see the effect better on CE.I tried with #FFFFE0
3.Now click on Insert and Save the page
4.You will see the entire content after that template (until references list) gets added as a Content section for that template and inherits the styling specified in the template parameters.
5.Reopen the page
6.Reopen the transclusion dialog for that template
7.Click on the Delete icon to remove the template "Top" to just retain the usual format of the text.
8.Click on "Apply Changes"
9.Now when you are back to CE, try to place your cursor on the content which was part of that template

Observed Result:
It throws the following error on each click:


Uncaught TypeError: Cannot read property 'right' of null
Uncaught Error: ve.dm.Document.getNodeFromOffset(): offset 85 is out of bounds 

Page:https://en.wikipedia.org/wiki/User:RYasmeen_(WMF)/sandbox?veaction=edit

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links