> > I was able to get formless inputs to pass validation (as XHTML 1.0 > strict or 1.1) at w3.org by putting them inside block elements like > div or table. > > > I've poked around a little looking to see what others have done, and I > could > > embed a checkmark image in my page, or I could embed the proper Unicode > code > > for a checkmark, and hope that the browser has a font installed with that > > character, but it seems to me that the browser must already know how to > > display a checkmark, and in the principle of DRY, I should be able to > reuse > > it :-) > > DRY doesn't really apply here. I suppose you could apply DRY by > writing a helper function to generate a link to the correct image > based on the boolean value. But reusing standard elements in ways they > weren't really designed to be used... just muddles the semantics. > > -Michael > Thanks Michael, Philp, & Fred. I should have thought of just trying it and running it through the validator before asking. Next time, I'll try that first.
FWIW, when I mentioned "DRY" I was referring to reusing the code in the browser that displays a checkmark, not to any code that I might have written in my application. It was supposed to be a joke, but I guess it died. Sigh. Thanks again folks. I appreciate the tips and opinions. Please keep them coming. --wpd --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

