From: Krinkle Date: Mon, 5 Sep 2011 23:10:33 +0000 (+0000) Subject: mediawiki.html: Attribute values may also be numbers (rather than boolean or string... X-Git-Tag: 1.31.0-rc.0~27885 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ef1e4d3e133c5d202b05798427afd0369a1f5eb2;p=lhc%2Fweb%2Fwiklou.git mediawiki.html: Attribute values may also be numbers (rather than boolean or string). Just make sure that whatever is passed becomes a string (not using .toString as not everything has a toString method) * Follows-up r96307 --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index 23d82141c1..7b704490fa 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -1247,7 +1247,7 @@ window.mw = window.mediaWiki = new ( function( $ ) { } else if ( v === false ) { continue; } - s += ' ' + attrName + '="' + this.escape( v ) + '"'; + s += ' ' + attrName + '="' + this.escape( '' + v ) + '"'; } if ( contents === undefined || contents === null ) { // Self close tag