depending on the purpose, you could use :

RDfa: http://www.w3.org/TR/xhtml-rdfa-primer/

or perhaps start using html 5 data attributes, see post from john:
http://ejohn.org/blog/html-5-data-attributes/

Greetings,
David

http://ontologyonline.org
jowl semantic javascript library: http://jowl.ontologyonline.org

On 19 mrt, 17:06, Bryan Larsen <bryan.lar...@gmail.com> wrote:
> I'm looking for a good HTML annotation method so that I can pass
> metadata for html tags to jQuery scripts.
>
> I found this pagehttp://www.1729.com/blog/HtmlAnnotations.htmlwhich
> surveys 9 different mechanisms.
>
> So far, I've tried the first mechanism (JSON in a script tag before
> the element to be annotated), which fails because 
> ofhttp://groups.google.com/group/jquery-en/browse_thread/thread/7d25002....
>
> Then I found the article, and tried the last mechanism (HTML
> comments).  However, jQuery appears to have no mechanism for selecting
> comments.  I've worked around this by using the native DOM traversal
> functions.  However, I'm sure my code would be more robust if this was
> supported within jQuery.
>
> Will jQuery support comment extraction in the future?  Does anybody
> have any other nice HTML annotation techniques?
>
> thanks,
> Bryan

Reply via email to