Hello,
I had some trouble with embedded IE11-webviews. The useragent contains msie and the documentMode is 11. This is why they get the IE10 permutation. But the IE11-"browser" has removed some functions in the compat mode. (createStyleSheet for example)
So I used a custom UserAgentPropertyGenerator based on
to rewrite the binding for IE11. In fact the IE11 compatibility mode is not compatible with older IE.
See: http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx
See: http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx
I added a new Block before the IE10-code block
- // IE11
- new UserAgentPropertyGeneratorPredicate("gecko1_8")
- .getPredicateBlock()
- .println("return ($doc.documentMode >= 11);")
- .returns("'gecko1_8'"),
- // IE10
The first tests looked good to me. But I am not sure, if I will cause some serious trouble with this approach.
The IE11 will get the gecko1_8 permutation in Standard mode and Compatibility mode now.
There may be errors, if one sets a variable "documentMode=11" onto the document. I may also need to add another condition to the oterh IE-code blocks
return (ua.indexOf('msie') != -1 && ($doc.documentMode >= 10) && $doc.createStyleSheet);
I know I may also get into trouble with IE12. But ....uhm .... One always get into trouble with never IE-versions.
Is there a problem with this approach I don't see?
Thanks,
Christian Kütbach
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment