JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.3
[ckeditor.git] / _source / plugins / link / dialogs / anchor.js
index c1cac35..3748e36 100644 (file)
@@ -1,5 +1,5 @@
 /*\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
@@ -26,7 +26,7 @@ CKEDITOR.dialog.add( 'anchor', function( editor )
                {\r
                        // Always create a new anchor, because of IE BUG.\r
                        var name = this.getValueOf( 'info', 'txtName' ),\r
-                               element = CKEDITOR.env.ie ?\r
+                               element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ?\r
                                editor.document.createElement( '<a name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) :\r
                                editor.document.createElement( 'a' );\r
 \r