Last modified: 2014-11-17 15:18:05 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 T72796, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70796 - Ugly span tags appear in Parsoid rendering of {{infobox book}}, but not in the saved wikitext, if ref tag is present
Ugly span tags appear in Parsoid rendering of {{infobox book}}, but not in th...
Status: RESOLVED WONTFIX
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-12 22:42 UTC by WhatamIdoing
Modified: 2014-11-17 15:18 UTC (History)
4 users (show)

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


Attachments
Span tag as seen in Firefox (276.64 KB, image/png)
2014-09-12 22:42 UTC, WhatamIdoing
Details
Infobox as seen in Safari. Note that the content of the box does not display in Safari. It's blank for half a screen, and then the article text begins. (227.91 KB, image/png)
2014-09-12 22:43 UTC, WhatamIdoing
Details

Description WhatamIdoing 2014-09-12 22:42:59 UTC
Created attachment 16455 [details]
Span tag as seen in Firefox

https://en.wikipedia.org/wiki/Everyone_Poops?veaction=edit produces an ugly span tag above the infobox.  

The infobox is not displaying correctly at all in Safari, but in both Firefox and Safari it shows a long, large, bold-face span tag.  This appears to be caused by the <ref> tags.  See https://en.wikipedia.org/w/index.php?oldid=625300040 for a single-parameter infobox that causes the mess.

These span tags are not saved, so they don't corrupt the wikitext.
Comment 1 WhatamIdoing 2014-09-12 22:43:53 UTC
Created attachment 16456 [details]
Infobox as seen in Safari.  Note that the content of the box does not display in Safari.  It's blank for half a screen, and then the article text begins.
Comment 3 James Forrester 2014-10-03 20:09:52 UTC
Looks like a Parsoid issue?
Comment 4 ssastry 2014-11-17 15:18:05 UTC
This is just a buggy template / template use.

The wikitext on https://en.wikipedia.org/w/index.php?oldid=625300040 leads to the following template expansion for the infobox:

...
<span class="Z3988"
          title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Everyone+Poops<ref name="bnn">{{cite web|url=http://search.barnesandnoble.com/Everyone-Poops/Taro-Gomi/e/9780916291457|title=Everyone Poops, My Body Science Series, Taro Gomi, Book|accessdate=2008-02-14|year=2009|publisher=[[Barnes & Noble]]}}</ref>"></span
...

See how the span has a title attribute that has a ref tag and transclusion. But even that brokenness is okay .. the real problem is the use of double quotes for the name attribute of the <ref> tag that is embedded in the title attribute.

So, the wikitext is effectively something like this:

<span title="....name="bnn"..."</span>

That is broken because of the use of double quotes which terminates the title attribute early. This is one of those edge-case differences between PHP parser and Parsoid. If the name="bnn" is replaced with name='bnn', this will work.

This is a wontfix on the Parsoid end since there is a wikitext edit that will handle this strange edge case.

Please reopen if there is something to do on the Parsoid end.

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


Navigation
Links