Last modified: 2010-05-15 15:33:59 UTC
I have several tags, including "iframe", that are defined as being allowed html tags in the $htmlattrs variable in Parser.php. http://meta.wikimedia.org/wiki/HTML#Permitted_HTML However, when i try to draw the page, these values are escaped, and not returned as html tags. See this example: http://www.tmbw.net/wiki/index.php/Template:Song_Nav_Stub 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 ;
That's the whitelist of HTML attributes, not elements. Check the arrays in removeHTMLtags().