Page MenuHomePhabricator

Parsoid: langlinks HTML does not provide sufficient context to edit
Closed, DeclinedPublic

Description

[This is not an urgent request for pre-July.]

Per https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Language_links the current behaviour is:

[[en:Foo]]

->

<link rel="mw:WikiLink/Language" href="http://en.wikipedia.org/wiki/Foo">

Though this is enough to render, we can't determine what the target wiki language is or the title (in this example case, 'en' and 'Foo').


Version: unspecified
Severity: enhancement

Details

Reference
bz48970

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:42 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz48970.

This information is implicit in the href attribute, and can be extracted easily with a map from URL prefix to concepts like language or article. I would consider interwiki prefixes a local syntactical detail which should not be exposed in our DOM.

[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]