also +1 on using data attributes. these are exactly what they are made for.
On Dec 30, 2012 11:19 AM, "Yuvi Panda" <yuvipanda(a)gmail.com> wrote:
On Sun, Dec 30, 2012 at 4:20 AM, Paul Selitskas
<p.selitskas(a)gmail.com
wrote:
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.
+1. I've been using this on a few gadgets I've been writing and it is
wonderful. This was possible only recently, though - ever since HTML5 was
enabled on WMF wikis.
--
Yuvi Panda T
http://yuvi.in/blog
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l