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
https://gwt.googlesource.com/gwt/+/2.6.1/user/src/com/google/gwt/useragent/rebind/UserAgentPropertyGenerator.java
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