Page MenuHomePhabricator

Fragment encoding in heading anchors and in links differ
Closed, ResolvedPublic

Description

The anchor of the heading and the link have different encoding:

== A&B&C&D&E ==
[[#A&B&C&D&E]]

The visualization does not differ: A&B&C&D&E

The link does not match to the anchor of the heading.

With enabled $wgExperimentalHtmlIds = true:

Expected result: The link should match to the anchor of the heading.

Related Objects

Event Timeline

Fomafix raised the priority of this task from to Needs Triage.
Fomafix updated the task description. (Show Details)
Fomafix subscribed.

Change 221614 had a related patch set uploaded (by Gerrit Patch Uploader):
Do not double decode HTML entities for IDs

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

Change 286385 had a related patch set uploaded (by Gerrit Patch Uploader):
Do not double decode HTML entities for IDs

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

ssastry triaged this task as Medium priority.Jan 4 2017, 6:38 PM

With https://gerrit.wikimedia.org/r/362167 I added parser tests that test for the current behavior.

This comment was removed by Fomafix.

Change 221614 abandoned by Fomafix:
Do not double decode HTML entities for IDs

Reason:
Superseded by https://gerrit.wikimedia.org/r/286385.

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

Change 377659 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] [WIP] Update Parsoid to generate modern IDs w/ legacy fallback

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

Change 286385 merged by jenkins-bot:
[mediawiki/core@master] Do not double decode HTML entities for IDs

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

Fomafix removed a project: Patch-For-Review.

Change 377659 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Update Parsoid to generate modern HTML5 IDs w/ legacy fallback

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