Opened 12 years ago
Last modified 10 years ago
#8668 closed Bug
IE6&7 Meta tag names not set in commitMeta, or recognised in createMetaHash, in docprops plugin — at Initial Version
Reported by: | NicHolt | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.6 |
Keywords: | IE6 IE7 HasPatch | Cc: |
Description
IE6 and IE7 do not recognise the "name" attribute for a META element. For these versions of IE, in order to set the "name" attribute of a META element, it is necessary to set the "Name" (initial capital) attribute.
In commitMeta, the code should be:
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) { meta.setAttribute( isHttp ? 'http-equiv' : 'Name', name ) } else { meta.setAttribute( isHttp ? 'http-equiv' : 'name', name ) }
In createMetaHash, the code should be:
if ( CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) { hash[ meta.getAttribute( meta.hasAttribute( 'http-equiv' ) ? 'http-equiv' : 'Name' ).toLowerCase() ] = meta; } else { hash[ meta.getAttribute( meta.hasAttribute( 'http-equiv' ) ? 'http-equiv' : 'name' ).toLowerCase() ] = meta; }