Last modified: 2013-07-15 01:39:53 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 T51873, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49873 - VisualEditor: <span> annotations next to each other aren't necessarily the same
VisualEditor: <span> annotations next to each other aren't necessarily the same
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-07-18
Assigned To: Ed Sanders
:
: 50291 51234 (view as bug list)
Depends on: 49478
Blocks: 50549
  Show dependency treegraph
 
Reported: 2013-06-20 12:49 UTC by Maggie Dennis
Modified: 2013-07-15 01:39 UTC (History)
6 users (show)

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


Attachments

Description Maggie Dennis 2013-06-20 12:49:43 UTC
Two users have reported on this. 

See:
http://en.wikipedia.org/w/index.php?title=User:AussieLegend/Vandals_etc&diff=prev&oldid=560719781

And:
http://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback#Font_colors_in_signatures_changed

I realize that this is probably tied into other behavior, but I lack code-fu to determine what. :)

Maggie
Comment 1 James Forrester 2013-06-21 00:18:23 UTC
In this case:

  <span style="color:green;">Aussie</span><span style="color:gold;">Legend</span>

… is being simplified by DM into:

  <span style="color:green;">AussieLegend</span>

… which, unsurprisingly, Parsoid assumes means we wanted to combine them. :-)
Comment 2 Ed Sanders 2013-06-21 10:59:37 UTC
This is the same as bug 49478. We are dependent on it being in Parsoid first, otherwise we would reintroduce bug 48110.
Comment 3 Ed Sanders 2013-06-21 11:26:29 UTC

*** This bug has been marked as a duplicate of bug 42803 ***
Comment 4 Ed Sanders 2013-06-21 11:30:59 UTC

*** This bug has been marked as a duplicate of bug 48194 ***
Comment 5 Gabriel Wicke 2013-07-02 03:17:22 UTC
Several of these issues are actually on the VE side, so reopening.
Comment 6 Gabriel Wicke 2013-07-11 20:51:43 UTC
I still see annotation merging on this test case:

http://www.mediawiki.org/wiki/User:GWicke/TestDoubleFormatting?veaction=edit

Steps to reproduce:

* append a char to 'baz'
* preview the change

Result: The bold ranges are merged, leading to a dirty diff
Expected result: no merging and no dirty diff
Comment 7 Roan Kattouw 2013-07-11 21:02:36 UTC
(In reply to comment #6)
> I still see annotation merging on this test case:
> 
> http://www.mediawiki.org/wiki/User:GWicke/TestDoubleFormatting?veaction=edit
> 
> Steps to reproduce:
> 
> * append a char to 'baz'
> * preview the change
> 
> Result: The bold ranges are merged, leading to a dirty diff
> Expected result: no merging and no dirty diff
That should be the only remaining annotation merging issue. I've been meaning to file a bug about it but I keep forgetting.

Ed, we need to preserve the difference between <b>Foo</b><b>Bar</b> and <b>FooBar</b> somehow. Feel free to hit me up on IRC if you want to talk about how we should do that.
Comment 8 Ed Sanders 2013-07-12 12:31:49 UTC
All we need to do is turn off similar annotation comparisons in VE completely, but Parsoid is not ready for that yet, for example adding new bold text next to Parsoid-generated bold text would create:

<b data=parsoid="">Old bold text</b><b>New bold text from VE</b>

which Parsoid should obviously merge to:

'''Old bold textNew bold text from VE'''

but doesn't yet.

Once this is all handled correctly, we can turn off similar annotation comparisons and the two bolds in <b>Foo</b><b>Bar</b> will no longer be merged (as they have will have different data-parsoid's). Of course Parsoid will not want to merge them either so that will factor into their logic.
Comment 9 Ed Sanders 2013-07-12 12:39:05 UTC
*** Bug 50291 has been marked as a duplicate of this bug. ***
Comment 10 Gabriel Wicke 2013-07-12 15:39:02 UTC
Adding Parsoid bug 42803 as a dependency. We do add nowiki between most cases of adjacent quotes to ensure at least correctness, but the markup will indeed not be optimal.
Comment 11 Gerrit Notification Bot 2013-07-12 21:22:53 UTC
Change 73523 had a related patch set uploaded by Esanders:
HACK: Don't merge adjacent annotations from Parsoid

https://gerrit.wikimedia.org/r/73523
Comment 12 Ed Sanders 2013-07-13 10:35:57 UTC
*** Bug 51234 has been marked as a duplicate of this bug. ***
Comment 13 Gerrit Notification Bot 2013-07-15 01:38:35 UTC
Change 73523 merged by jenkins-bot:
HACK: Don't merge adjacent annotations from Parsoid

https://gerrit.wikimedia.org/r/73523
Comment 14 James Forrester 2013-07-15 01:39:53 UTC
Merged and will go out tomorrow.

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


Navigation
Links