mediawiki.html: Attribute values may also be numbers (rather than boolean or string...
authorKrinkle <krinkle@users.mediawiki.org>
Mon, 5 Sep 2011 23:10:33 +0000 (23:10 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Mon, 5 Sep 2011 23:10:33 +0000 (23:10 +0000)
* Follows-up r96307

resources/mediawiki/mediawiki.js

index 23d8214..7b70449 100644 (file)
@@ -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