Last modified: 2014-02-06 21:37:49 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 T62177, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60177 - Nested wiki link edge case [[foo|[[foo]]]] not handled correctly
Nested wiki link edge case [[foo|[[foo]]]] not handled correctly
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-17 19:07 UTC by Gabriel Wicke
Modified: 2014-02-06 21:37 UTC (History)
2 users (show)

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


Attachments

Description Gabriel Wicke 2014-01-17 19:07:04 UTC
Test case:

echo '[[foo|[[foo]]]]' | node parse --wt2wt
[[foo|<nowiki/>]][[foo]]

The PHP parser only recognizes the inner link and displays the outer link as plain text. We parse both links, which results in the outer link being broken up in the DOM. We seem to detect this ("misnested":true in data-parsoid), but don't use this info to convert the outer link to text.

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


Navigation
Links