Perhaps, you chose the wrong approach. Dig in HTML5 data attributes, for examples. That's a better data interface between wikipage code and the View. You can then access them with $(selector).data() method.
On Sun, Dec 30, 2012 at 12:23 AM, Alex Brollo alex.brollo@gmail.com wrote:
I'd like to use html comment into raw wiki text, to use them as effective, server-unexpensive "data containers" that could be read and parsed by a js script in view mode. But I see that html comment, written into raw wiki text, are stripped away by parsing routines. I can access to raw code of current page in view mode by js with a index.php or an api.php call, and I do, but this is much more server-expensive IMHO.
Is there any sound reason to strip html comments away? If there is no sound reason, could such a stripping be avoided?
Alex brollo _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l