Hi, I am trying to implement SafeHtml with some parameters in the HTML
style atribute:
Example:

@Template("<div style=\"{0}\"><div style=
\"position:absolute;display:none;"
                                + "\"></div><div>{1}</div></div>")
                SafeHtml unsorted(SafeCSSWidth imageWidth, String text);

My SafeCSSWidth class implements SafeStyles, according to the contract
but the GWT compiler still outputs:
[INFO]                   Generating method body for unsorted()
[INFO]                      [WARN] Template with variable in CSS
attribute context: The template code generator cannot guarantee HTML-
safety of the template -- please inspect manually or use SafeStyle
s to specify arguments in a CSS attribute context
[INFO]    Compiling 1 permutation
[INFO]       Compiling permutation 0...

I am using GWT 2.3.0.
Any suggestions ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to