Last modified: 2012-11-26 17:28:03 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 T44212, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42212 - VisualEditor: Inserting text content around inline alien nodes throws an exception
VisualEditor: Inserting text content around inline alien nodes throws an exce...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2012-11-26
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-16 22:59 UTC by Inez Korczyński
Modified: 2012-11-26 17:28 UTC (History)
5 users (show)

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


Attachments

Description Inez Korczyński 2012-11-16 22:59:48 UTC
Specifically it fails when trying to insert text content between two inline aliens or after last inline alien inside its parent.

Exception:
Uncaught TypeError: Cannot read property 'start' of undefined ve.dm.TransactionProcessor.js:259
ve.dm.TransactionProcessor.processors.replace

// Set change markers on the parents of the affected nodes
for ( i = 0; i < selection.length; i++ ) {
	this.setChangeMarker(
		selection[i].parentOuterRange.start + this.adjustment,
		'content'
	);
}
Comment 1 Inez Korczyński 2012-11-17 07:38:28 UTC
It also happens when inserting text content before inline alien if that alien is a first child of its parent.
Comment 2 Roan Kattouw 2012-11-19 23:12:58 UTC
https://gerrit.wikimedia.org/r/34224

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


Navigation
Links