On Nov 11, 2010, at 10:11 AM, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> Walter Davis wrote in post #960734: >> That looks cool, but it uses a LOT of really non-standard HTML. >> (Validate their demo page for a study in angry-looking error icons >> over at W3.) I am still wishing for one of these that doesn't use made- >> up attributes on the A or IMG to communicate the metadata for the >> popup. > > Actually, made-up attributes are often the best way to do this. I'm an > HTML validation Nazi, but I'm perfectly happy to use extra attributes > like these -- the nice thing about HTML is that unknown attributes won't > break anything, and they prevent you from having to mix JS into your > HTML. > >> I have the start of such a thing, but I haven't had time to >> really flesh out its support for non-image media. > > Where do you put your metadata? I use the a:title, the a:class, the a:rel, the img:class and the img:alt. I'm also thinking about the img:src to encode geometry for Flash and other plugin content. I haven't added support for non-image media types yet, though. Walter > >> >> Walter > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.