Changeset 262

Show
Ignore:
Timestamp:
2007-04-20 10:46:39 (3 years ago)
Author:
fredck
Message:

Fixed #360 : Form "name" was being set to "[object]" if it contained an element with id="name".

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckxhtml_ie.js

    r189 r262  
    164164                FCKXHtml._AppendAttribute( node, 'accept-charset', htmlNode.acceptCharset ) ; 
    165165 
    166         if ( htmlNode.name ) 
    167                 FCKXHtml._AppendAttribute( node, 'name', htmlNode.name ) ; 
     166        // IE has a bug and htmlNode.attributes['name'].specified=false if there is 
     167        // no element with id="name" inside the form (#360 and SF-BUG-1155726). 
     168        var nameAtt = htmlNode.attributes['name'] ; 
     169 
     170        if ( nameAtt && nameAtt.value.length > 0 ) 
     171                FCKXHtml._AppendAttribute( node, 'name', nameAtt.value ) ; 
    168172 
    169173        node = FCKXHtml._AppendChildNodes( node, htmlNode ) ; 
  • FCKeditor/trunk/_whatsnew.html

    r259 r262  
    5959                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/391">#391</a>] When ToolbarLocation=Out, 
    6060                        a "Security Warning" alert was being shown in IE if under https. Thanks to reister.</li> 
     61                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/360">#360</a>] Form "name" 
     62                        was being set to "[object]" if it contained an element with id="name".</li> 
    6163        </ul> 
    6264        <h3>