Free Nodelet gets templating features says one of the main features of the new enhancements are that it will "No longer foul up square brackets in JavaScript inside HTML comments", but when I tried putting [Free Nodelet Hack] Highlight monk names accordingly their XP level in my Free Nodelet, the square brackets within the JavaScript were mangled^H^H^H^H^H^H^H^H processed as if they were PM links.
I was further surprised to find that if I comment just one of them (e.g. change "var Pope = [979];" to "var Pope = `[979];") then none of them are mangled. It doesn't matter which one I quote - quoting any one of them stops all of them being processed as links.
Without the quote, "var Pope = [979];" is rendered as "var Pope = <a href="?node=979">979</a>;", which doesn't work very well at all.
All I did was cut and paste the code from [Free Nodelet Hack] Highlight monk names accordingly their XP level, and it certainly appears to have the JavaScript enclosed in HTML comments ("<!-- ... -->").
Is this expected behaviour? Might I have done something wrong?
update: There was a bug but tye has fixed it!!
update2: Removed the quote from the example after "Without the quote".
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Free Nodelet, JavaScript and PM links (words)
by tye (Sage) on Apr 18, 2009 at 01:57 UTC | |
by ig (Vicar) on Apr 18, 2009 at 03:37 UTC | |
by tye (Sage) on Apr 18, 2009 at 04:05 UTC | |
by ig (Vicar) on Apr 18, 2009 at 05:32 UTC | |
by tye (Sage) on Apr 18, 2009 at 03:45 UTC | |
by ig (Vicar) on Apr 18, 2009 at 03:58 UTC |