Last modified: 2013-02-12 21:31:23 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 T46779, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44779 - Parsoid: Linktrails should get a <nowiki /> added on serialisation
Parsoid: Linktrails should get a <nowiki /> added on serialisation
Status: RESOLVED DUPLICATE of bug 33091
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: James Forrester
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-08 04:09 UTC by Phil Kirkham
Modified: 2013-02-12 21:31 UTC (History)
7 users (show)

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


Attachments
Link includes the word 'and' (16.58 KB, image/png)
2013-02-08 04:09 UTC, Phil Kirkham
Details

Description Phil Kirkham 2013-02-08 04:09:45 UTC
Created attachment 11754 [details]
Link includes the word 'and'

I edited the space after a link so that the word following was right next to the link. I then realised this was not what I wanted so added the space back
The preview indicated all was well with the space included but after saving the word after the link became part of the link

Example:
The text I had was
"A page about a test pilot and his job"
'test pilot' was a link

I edited the page and put the cursor before the 'a' in 'and' and pressed delete.
I then pressed Space to move the word back to its original position
Saved - the preview indicated all was well
After saving - 'and' had become part of the link

Looking at the page in the normal editor it seems the space has not been put back - the Visual Editor display indicates that it has
Comment 1 James Forrester 2013-02-12 21:05:29 UTC
This appears to be a problem in Parsoid.

In VisualEditor the user has (effectively) created <a href="foo">bar</a>baz; it is unexpectedly converted into [[foo|bar]]baz instead of [[foo|bar]]<nowiki />baz, hence the confusion.

Gabriel, thoughts?
Comment 2 Gabriel Wicke 2013-02-12 21:26:37 UTC
To me it seems that the VE should produce a DOM including the space: 

<a href="foo">bar</a> baz

If that is not the case, then this is a bug in VE. Escaping for legitimate link trails was fixed in bug 33091, which is not yet deployed.

So either way, I don't think there is a bug in Parsoid here.
Comment 3 James Forrester 2013-02-12 21:31:23 UTC
Ah, couldn't find the bug; thanks, Gabriel.

*** This bug has been marked as a duplicate of bug 33091 ***

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


Navigation
Links