Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -307,7 +307,7 @@ |
308 | 308 | */ |
309 | 309 | function generateId() { |
310 | 310 | var id = ''; |
311 | | - var seed = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; |
| 311 | + var seed = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; |
312 | 312 | for ( var i = 0, r; i < 32; i++ ) { |
313 | 313 | r = Math.floor( Math.random() * seed.length ); |
314 | 314 | id += seed.substring( r, r + 1 ); |
— | — | @@ -1137,7 +1137,7 @@ |
1138 | 1138 | */ |
1139 | 1139 | this.element = function( name, attrs, contents ) { |
1140 | 1140 | var s = '<' + name; |
1141 | | - for ( attrName in attrs ) { |
| 1141 | + for ( var attrName in attrs ) { |
1142 | 1142 | s += ' ' + attrName + '="' + this.escape( attrs[attrName] ) + '"'; |
1143 | 1143 | } |
1144 | 1144 | if ( typeof contents == 'undefined' || contents === null ) { |
— | — | @@ -1147,7 +1147,7 @@ |
1148 | 1148 | } |
1149 | 1149 | // Regular open tag |
1150 | 1150 | s += '>'; |
1151 | | - if (typeof contents === 'string') { |
| 1151 | + if ( typeof contents === 'string') { |
1152 | 1152 | // Escaped |
1153 | 1153 | s += this.escape( contents ); |
1154 | 1154 | } else if ( contents instanceof this.Raw ) { |