Page MenuHomePhabricator

auto-external links terminate differently than the php parser
Closed, ResolvedPublic

Description

In the php parser the wikitext "(http://www.google.com)" results in:

(<a class="external free" href="https://bugzilla.wikimedia.org/show_bug.cgi?id=57451">https://bugzilla.wikimedia.org/show_bug.cgi?id=57451</a>)

Running the same content through parsoid results in:

(<a rel="mw:ExtLink" href="http://www.google.com)" data-parsoid='{"stx":"url","dsr":[1,23,0,0]}'>http://www.google.com)</a>

The final parenthesis should be outside the anchor, rather than included in the url.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=57520

Details

Reference
bz58054

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz58054.

Change 99587 had a related patch set uploaded by GWicke:
Bug 58054: Implement URL link parenthesis heuristic

https://gerrit.wikimedia.org/r/99587

Change 99587 merged by jenkins-bot:
Bug 58054: Implement URL link parenthesis heuristic

https://gerrit.wikimedia.org/r/99587

Scheduled for deployment on Monday.

  • Bug 57520 has been marked as a duplicate of this bug. ***

Change 101284 had a related patch set uploaded by GWicke:
Merge "Bug 58054: Implement URL link parenthesis heuristic"

https://gerrit.wikimedia.org/r/101284

Change 101341 had a related patch set uploaded by GWicke:
Bug 58054: Implement URL link parenthesis heuristic

https://gerrit.wikimedia.org/r/101341

Change 101284 merged by GWicke:
Merge "Bug 58054: Implement URL link parenthesis heuristic"

https://gerrit.wikimedia.org/r/101284

Change 101341 merged by GWicke:
Bug 58054: Implement URL link parenthesis heuristic

https://gerrit.wikimedia.org/r/101341