Last modified: 2014-01-16 12:47:59 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 T28727, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26727 - Allow anchor (<a>) tags in wikitext
Allow anchor (<a>) tags in wikitext
Status: RESOLVED DUPLICATE of bug 33886
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-14 17:41 UTC by MZMcBride
Modified: 2014-01-16 12:47 UTC (History)
2 users (show)

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


Attachments

Description MZMcBride 2011-01-14 17:41:32 UTC
Currently, Sanitizer.php bans the use of an <a> tag, even though it's possible to mostly replicate the effect of an <a> tag using internal or external link markup (e.g., "[[foo]]" or "[http://example.com foo]"). However, wikimarkup does not allow for certain attributes to be passed to the rendered <a> tag, for example title="" and target="".

Obviously a whitelist/blacklist would be needed to allow or disallow certain attributes from being used, however I believe some of this sanitation is already built in to MediaWiki or could easily be as necessary. Allowing the <a> tag has a number of benefits and it's the usual practice to allow the HTML equivalents of markup that's allowed in wikitext.
Comment 1 db [inactive,noenotif] 2011-01-14 18:31:34 UTC
related: bug 18460
Comment 2 MZMcBride 2011-01-14 18:33:13 UTC

*** This bug has been marked as a duplicate of bug 18460 ***
Comment 3 Helder 2014-01-16 12:47:59 UTC

*** This bug has been marked as a duplicate of bug 33886 ***

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


Navigation
Links