Last modified: 2013-09-03 23:32:36 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 T55434, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53434 - Parsoid: New adjacent references are getting about grouped
Parsoid: New adjacent references are getting about grouped
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Gabriel Wicke
:
: 53334 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-27 22:57 UTC by Ed Sanders
Modified: 2013-09-03 23:32 UTC (History)
4 users (show)

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


Attachments

Description Ed Sanders 2013-08-27 22:57:29 UTC
The following code has four references, but only renders three:

<p><span typeof="mw:Extension/ref" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;No name 2&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;:3&quot;}}" about="#mwt13" class="reference" id="cite_ref-4-0" rel="dc:references" data-parsoid="{&quot;dsr&quot;:[110,130,5,6]}"></span><span typeof="mw:Extension/ref" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;No name 3&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;:4&quot;}}" about="#mwt14" class="reference" id="cite_ref-5-0" rel="dc:references" data-parsoid="{&quot;dsr&quot;:[130,150,5,6]}"></span><span typeof="mw:Extension/ref" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;No name 2&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;:3&quot;}}"></span><span typeof="mw:Extension/ref" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;No name 3&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;:4&quot;}}"></span></p>

It was created by duplicating two unnamed references.
Comment 1 ssastry 2013-08-28 17:03:51 UTC
Ed: I dont understand the bug ... Is this a problem with the parse output from Parsoid or is the problem with how Parsoid serializes edited HTML in VE?  Can you clarify and provide wikitext snippet, if the former?
Comment 2 Roan Kattouw 2013-08-30 00:55:27 UTC
It's a problem with serialization. If we provide two adjacent references that are clones of existing references (via copy/paste) and both don't have an about attribute, Parsoid seemingly considers them both to be in the same about group with about=undefined and drops all but the first.
Comment 3 Gabriel Wicke 2013-08-30 00:59:01 UTC
Minor nitpick: it would be null. But otherwise Roan's hunch sounds very plausible to me.
Comment 4 James Forrester 2013-08-30 01:07:50 UTC
This (or a closely-related bug) are really badly breaking normal editing in VE, which we thought we had fixed with bug 52228 - namely, making multiple sequential references.

Minimum spanning test:

Input HTML+RDFa:

<p>Foo<span typeof="mw:Extension/ref" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;Bar&quot;},&quot;attrs&quot;:{}}"><a href="#cite_note-1">[1]</a></span><span typeof="mw:Extension/ref" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;Baz&quot;},&quot;attrs&quot;:{}}"><a href="#cite_note-1">[1]</a></span></p>

Expected WT:

Foo<ref>Bar</ref><ref>Baz</ref>

Actual WT:

Foo<ref>Bar</ref>
Comment 5 Gerrit Notification Bot 2013-08-30 01:32:12 UTC
Change 81886 had a related patch set uploaded by GWicke:
Bug 53434: Only skip about siblings if about is actually set

https://gerrit.wikimedia.org/r/81886
Comment 6 Gerrit Notification Bot 2013-08-30 18:53:03 UTC
Change 81886 merged by Arlolra:
Bug 53434: Only skip about siblings if about is actually set

https://gerrit.wikimedia.org/r/81886
Comment 7 ssastry 2013-09-03 15:41:29 UTC
*** Bug 53334 has been marked as a duplicate of this bug. ***
Comment 8 ssastry 2013-09-03 15:53:41 UTC
Not sure if has been rt-tested and deployed yet.
Comment 9 ssastry 2013-09-03 23:32:36 UTC
Deployed to production this morning and verified fix.

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


Navigation
Links