In my project, we want to mark some of our form items as being mandatory, and we do that by prefixing the label with a red asterisk. I know that isn't Section 508-compliant by itself, but that's the least of my problems. Originally, we would put in two InlineLabel widgets, one for the asterisk and one for the label text, but i realized that modern CSS >2.0-compliant browsers could use the :before pseudo class, and I proceded to write a module with a RequiredText class. This class has a static inner class namedRequiredTextImpl and that has a RequiredTextImplIE6 subclass. These tell whether I can get away with :before, or if I need to add the asterisk myself.
I have the sneaking suspicion that I'm missing something. Are the rules available to the gwt.xml file robust enough that I can ask questions like "Does the user agent stand for a browser that accepts the :before pseudo-class and the content attribute"? Or must I test for IE6 or Hosted mode explicitly? Also, is there any way to give the effect of the <label for="..."/> construction? I know I can't easily add an id to an element. Respectfully, Eric Jablow -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/google-web-toolkit?hl=en.
