Last modified: 2014-08-20 22:23:58 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 T66436, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64436 - Embedded autolinks
Embedded autolinks
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-25 16:48 UTC by C. Scott Ananian
Modified: 2014-08-20 22:23 UTC (History)
2 users (show)

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


Attachments

Description C. Scott Ananian 2014-04-25 16:48:44 UTC
Parsoid parses the following as an autolink, PHP does not:

xyzhttp://example.com

EG:

$ echo 'This is a testhttp://cscott.net' | tests/parse.js  --normalize=parsoid
<!DOCTYPE html><html><head><title></title><base href="//en.wikipedia.org/wiki/Main_Page"/></head><body><p>This is a test<a rel="mw:ExtLink" href="http://cscott.net">http://cscott.net</a></p></body></html>
Comment 1 C. Scott Ananian 2014-04-25 17:29:24 UTC
This is also the case for RFC and PMID links.
Comment 2 ssastry 2014-05-12 19:38:44 UTC
(In reply to C. Scott Ananian from comment #1)
> This is also the case for RFC and PMID links.

See https://www.mediawiki.org/wiki/User:Ssastry/Tests:links
Comment 3 ssastry 2014-05-19 17:56:37 UTC
Related: http://foo.com?x='y' parses differently as well.
Comment 4 C. Scott Ananian 2014-05-19 19:32:36 UTC
subbu: gwicke, [subbu@earth tests] echo '{{SEITENTITEL:al-Mukarram Ahmad}}' | node parse --prefix dewiki
subbu: ... <p data-parsoid='{"dsr":[0,33,0,0]}'>{{SEITENTI<a rel="mw:ExtLink" href="TEL:al-Mukarram" data-parsoid='{"stx":"url","dsr":[10,25,0,0]}'>TEL:al-Mukarram</a> Ahmad}}</p> ...
subbu: looks like TEL is a valid prefix on dewiki and this is bug 64436
subbu: and in addition, some tokenizer production priority issue.
subbu: since this should have been parsed as a tpl.

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


Navigation
Links