/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
return domain != hostname &&\r
domain != ( '[' + hostname + ']' ); // IPv6 IP support (#5434)\r
- }\r
+ },\r
+\r
+ /**\r
+ * Indicates that page is running under an encrypted connection.\r
+ * @returns {Boolean} "true" if the page has an encrypted connection.\r
+ * @example\r
+ * if ( CKEDITOR.env.secure )\r
+ * alert( "I'm in SSL!" );\r
+ */\r
+ secure : location.protocol == 'https:'\r
};\r
\r
/**\r
env.ie8Compat = document.documentMode == 8;\r
\r
/**\r
+ * Indicates that CKEditor is running on Internet Explorer 9's standards mode.\r
+ * @name CKEDITOR.env.ie9Compat\r
+ * @type Boolean\r
+ * @example\r
+ * if ( CKEDITOR.env.ie9Compat )\r
+ * alert( "IE9, the beauty of the web!" );\r
+ */\r
+ env.ie9Compat = document.documentMode == 9;\r
+\r
+ /**\r
* Indicates that CKEditor is running on an IE7-like environment, which\r
* includes IE7 itself and IE8's IE7 document mode.\r
* @name CKEDITOR.env.ie7Compat\r