Last modified: 2012-12-07 23:08:56 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 T44839, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42839 - VisualEditor: Links should not be allowed to be created spanning only whitespace
VisualEditor: Links should not be allowed to be created spanning only whitespace
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Low normal
: VE-deploy-2012-12-10
Assigned To: Rob Moen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-07 21:53 UTC by Rob Moen
Modified: 2012-12-07 23:08 UTC (History)
4 users (show)

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


Attachments

Description Rob Moen 2012-12-07 21:53:40 UTC
Select some whitespace and open the link inspector and create the link.
The SurfaceFragment.trimRange method is not trimming the space if the range only contains space.

The correct behavior should be to trim the space then insert the location text into the document.
Comment 1 Rob Moen 2012-12-07 21:58:52 UTC
Patch in https://gerrit.wikimedia.org/r/37541
This is DM stuff so Trevor or Roan will need to review.

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


Navigation
Links