Last modified: 2010-05-15 15:33:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3071 - Tags defined in $htmlattrs are not rendered as html tags on screen
Tags defined in $htmlattrs are not rendered as html tags on screen
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-08-07 21:48 UTC by Brad Will (
Modified: 2010-05-15 15:33 UTC (History)
0 users

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


Description Brad Will ( 2005-08-07 21:48:50 UTC
I have several tags, including "iframe", that are defined as being allowed html
tags in the $htmlattrs variable in Parser.php.

However, when i try to draw the page, these values are escaped, and not returned
as html tags.  See this example:

According to all documentation i can find, i am doing it correctly.  Here's the
example from my Parser.php file:

	function getHTMLattrs () {
		$htmlattrs = array( # Allowed attributes--no scripting, etc.
				'title', 'align', 'lang', 'dir', 'width', 'height',
				'bgcolor', 'clear', /* BR */ 'noshade', /* HR */
				'cite', /* BLOCKQUOTE, Q */ 'size', 'face', 'color',
				/* FONT */ 'type', 'start', 'value', 'compact',
				/* For various lists, mostly deprecated but safe */
				'summary', 'width', 'border', 'frame', 'rules',
				'cellspacing', 'cellpadding', 'valign', 'char',
				'charoff', 'colgroup', 'col', 'span', 'abbr', 'axis',
				'headers', 'scope', 'rowspan', 'colspan', /* Tables */
				'id', 'class', 'name', 'style', 'iframe', 'src', 'frameborder', 'scrolling'
		return $htmlattrs ;
Comment 1 Brion Vibber 2005-08-08 15:18:03 UTC
That's the whitelist of HTML attributes, not elements.

Check the arrays in removeHTMLtags().

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