Last modified: 2011-04-30 01:21:17 UTC
Below line from my Monobook.js: var rex = new RegExp ('<!--' + 'hak dla skryptu' + '-->', 'i'); Is rendered as: var rex = new RegExp ('', 'i'); In JavaScript loaded from wikipages. This bug makes impossible to use HTML comments for making marks for AJAX code.
A temporary workaround is to use '<!' + '--'
why '<--' + 'something' + '-->' is stripped and '<-' + '-something-' + '->' not?
Because it contains <!-- some text --> ; the parser doesn't look at quotes. Putting quotes, spaces and a plus in such a way that <!-- is no longer together works around it. '<!--' + blah + '-->' is interpreted as quote comment quote '<!' + '--' + blah + '--' + '>' doesn't have a special sequence
monobook.js is loaded via action=raw, it shouldn't "disappear". And in fact i see the content right in http://test.wikipedia.org/w/index.php?title=User:Platonides/monobook.js&action=raw&ctype=text/javascript&urid=243z2_79308 Where is it being removed?
On my wiki it occurs only in site JavaScript (MediaWiki:Monobook.js) in user JS it's not stripped. It's same with and without extensions.
> monobook.js is loaded via action=raw, it shouldn't "disappear". Actually, MediaWiki:Monobook.js is being loaded via gen=js (and combined with Common.js), which does do some limited parsing. This is a feature/bug in gen=js (and may be a dupe).
Fixed in r61058.