On Mar 27, 4:41 am, kstubs <[email protected]> wrote:
> Data prefix?

Yes. Literally:

<div data-customer='1234'>

As of HTML5, any attribute whose name starts with "data-" is valid on
any element; they're ignored by browsers (other than being put on the
elements in the DOM so you can access them) and other tools:
http://www.w3.org/TR/html5/elements.html#embedding-custom-non-visible-data-with-the-data-attributes

It was added because people were doing exactly what you describe,
resulting in invalid documents and the potential for issues where
little-known attributes were inadvertently used, etc.

So for your requirement, you might want a `data-customer` attribute.

HTH,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to