[PLUG-TALK] user defined tag attributes in html
Brent Rieck
bsr at spek.org
Mon Oct 26 23:19:11 UTC 2009
On Wed, Sep 30, 2009 at 8:28 PM, Keith Lofstrom <keithl at kl-ic.com> wrote:
> I'm writing the next version of wydiwys. Much less baroque than
> the first. I would like to add my own attributes to <div> tags
> in some places, for example:
>
> <div class="image" id="wydiwys,pretty" wyat="end">
>
You're on the right track but I believe you must use data-<something>
as your custom tag attributes if you're concerned about the html
validating and maybe working across browsers, here's a little bit by
the jQuery guy: http://ejohn.org/blog/html-5-data-attributes/
--Brent
More information about the PLUG-talk
mailing list