I'm looking for a good HTML annotation method so that I can pass
metadata for html tags to jQuery scripts.

I found this page http://www.1729.com/blog/HtmlAnnotations.html which
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 of
http://groups.google.com/group/jquery-en/browse_thread/thread/7d25002ada8d15f7/33317d9c68f1b154.

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