Last modified: 2013-07-04 10:33:42 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 T49340, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47340 - Always output <span typeof="mw:Object/Template"> as first element of template
Always output <span typeof="mw:Object/Template"> as first element of template
Status: RESOLVED WONTFIX
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-17 22:43 UTC by Roan Kattouw
Modified: 2013-07-04 10:33 UTC (History)
3 users (show)

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


Attachments

Description Roan Kattouw 2013-04-17 22:43:51 UTC
When the expanded contents of a template look like this:
[[Category:Foo]]
[[Category:Bar]]

The resulting HTML looks like:
<link rel="mw:WikiLink/Category" href="..." typeof="mw:Object/Template" about="#mwt1" data-mw="..."><span about="#mwt1">
</span><link rel="mw:WikiLink/Category" href="..." about="#mwt1">

(where the span wraps a newline)

This generally happens whenever a category is the first thing in the template. The first <link> node is a DOM node that represents both a template and a category at the same time, which is not something VE is equipped to deal with in a reasonable way. We could hack it such that it would, but in general one DOM node representing two different things at once is not something we like working with.

(CC Rob because he's affected by this)
Comment 1 Gabriel Wicke 2013-04-17 23:00:42 UTC
This is expected behavior. We set the template information on a node, or insert a span when needed for plain text.
Comment 2 Andre Klapper 2013-07-04 10:33:42 UTC
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]

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


Navigation
Links