Skip to content

Commit 171b90f

Browse files
committed
Merge branch 't/11182'
2 parents 4a28dcc + cc5df44 commit 171b90f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Fixed Issues:
1212
* [#11159](http://dev.ckeditor.com/ticket/11159): [Enhanced Image](http://ckeditor.com/addon/image2): Fixed buggy discovery of image dimensions in IE9 and IE10.
1313
* [#11198](http://dev.ckeditor.com/ticket/11198): Widgets: Drag handler is not fully visible when inline widget is in a heading.
1414
* [#11132](http://dev.ckeditor.com/ticket/11132): [Firefox] Fixed: Caret is lost after drag and drop of inline widget.
15+
* [#11182](http://dev.ckeditor.com/ticket/11182): [Internet Explorer 10-11] Fixed: Editor crashes (IE11) or works with minor issues (IE10) if page is loaded in Quirks Mode. See [`env.quirks`](http://docs.ckeditor.com/#!/api/CKEDITOR.env-property-quirks) for more details.
1516

1617
## CKEditor 4.3
1718

core/env.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,23 @@ if ( !CKEDITOR.env ) {
7272
mac: ( agent.indexOf( 'macintosh' ) > -1 ),
7373

7474
/**
75-
* Indicates that CKEditor is running in a Quirks Mode environemnt.
75+
* Indicates that CKEditor is running in a Quirks Mode environment.
7676
*
7777
* if ( CKEDITOR.env.quirks )
7878
* alert( 'Nooooo!' );
7979
*
80+
* Internet Explorer 10 introduced the _New Quirks Mode_, which is similar to the _Quirks Mode_
81+
* implemented in other modern browsers and defined in HTML5 specification. It can be handled as
82+
* the standards mode, so value of this property will be set to `false`.
83+
*
84+
* The _Internet Explorer 5 quirks_ mode which is still available in Internet Explorer 10+
85+
* sets this value to `true` and {@link #version} to `7`.
86+
*
87+
* Read more: [IEBlog](http://blogs.msdn.com/b/ie/archive/2011/12/14/interoperable-html5-quirks-mode-in-ie10.aspx)
88+
*
8089
* @property {Boolean}
8190
*/
82-
quirks: ( document.compatMode == 'BackCompat' ),
91+
quirks: ( document.compatMode == 'BackCompat' && ( !document.documentMode || document.documentMode < 10 ) ),
8392

8493
/**
8594
* Indicates that CKEditor is running in a mobile environemnt.
@@ -181,7 +190,7 @@ if ( !CKEDITOR.env ) {
181190
env.ie9Compat = version == 9;
182191
env.ie8Compat = version == 8;
183192
env.ie7Compat = version == 7;
184-
env.ie6Compat = version < 7 || ( env.quirks && version < 10 );
193+
env.ie6Compat = version < 7 || env.quirks;
185194

186195
/**
187196
* Indicates that CKEditor is running in an IE6-like environment, which

0 commit comments

Comments
 (0)