[BUG #4987] check for IE document mode
[BUG #7407] fixed Selector for Inline applications