Somehow prevent iOS Safari and other browsers' plugins from converting numbers into `tel:xyz` links
Open, LowPublic

Description

See [https://fr.wikipedia.org/w/index.php?title=Alexis_Galp%C3%A9rine&diff=prev&oldid=119818187 this edit] (and also other edits on this article) :

  • Forbidden <a> tag
  • With an ISBN converted into a telephone number
  • With parsoid attributes

Please fix

NicoV created this task.Oct 25 2015, 10:11 AM
NicoV updated the task description. (Show Details)
NicoV raised the priority of this task from to Needs Triage.
NicoV added projects: VisualEditor, Parsoid.
NicoV added a subscriber: NicoV.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 25 2015, 10:11 AM
NicoV added a subscriber: ssastry.Oct 25 2015, 5:46 PM

@ssastry : is the "telephone number" problem really the same problem as T116460 ?

ssastry reopened this task as Open.Oct 25 2015, 6:05 PM

Now that I look at it more closely, you are right. Maybe not. Conversion of a string of numbers to a telephone number seems like something that some plugin on the user's browser did (like how iPhone and other iOS gadgets sometimes do). I missed the <nowiki> around the whole string which is why Parsoid spit out the a-tag as a string.

So, maybe Parsoid needs to strip the a-tag even if it is embedded inside a nowiki string (right now don't do it because of the nowiki and also because the sanitizer strips those anyway).

@ssastry Here's an other example of the telephone problem (on the same article), alone without the other problems
https://fr.wikipedia.org/w/index.php?title=Alexis_Galp%C3%A9rine&diff=prev&oldid=119866774
It seems to have happened on an otherwise non modified line

Previous edits on the same article also created the telephone problem on other parts of the article
https://fr.wikipedia.org/w/index.php?title=Alexis_Galp%C3%A9rine&diff=prev&oldid=119865955
https://fr.wikipedia.org/w/index.php?title=Alexis_Galp%C3%A9rine&diff=prev&oldid=119861211

Conversion of a string of numbers to a telephone number seems like something that some plugin on the user's browser did (like how iPhone and other iOS gadgets sometimes do).

Skype loves to do this.

There is nothing for Parsoid to do here if the HTML we get is already mangled because of browser plugins , unless there is some specialized cleanup that can be implemented. I'll let @Esanders and @Jdforrester-WMF take a look at this.

ssastry set Security to None.
Jdforrester-WMF renamed this task from Tag <a href="tel:..." data-parsoid-diff="..." to Somehow prevent iOS Safari and other browsers' plugins from converting numbers into `tel:xyz` links.Nov 17 2015, 8:22 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF moved this task from To Triage to Backlog on the VisualEditor board.