#3552: FCK Editor 2.6.4 IE8 HTML4 add/edit hyperlink error -----------------------+---------------------------------------------------- Reporter: harrytheb | Owner: Type: Bug | Status: new Priority: Normal | Milestone: Component: General | Version: FCKeditor 2.6.4 Keywords: | -----------------------+---------------------------------------------------- Descriptive summary:
JavaScript errors appearing when adding a new hyperlink or when editing an existing hyperlink in IE8. The error only occurs when the doctype is set to HTML4 (FCKConfig.DocType). Steps to reproduce: It is quite easy to reproduce - edit fckeditor\_samples\html\assets\sample15.config.js and add the line: FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'; Then run sample 15 and click into the hyperlink. Click the 'edit hyperlink' button. IE8 throws an exception and asks if you want to debug the web page. The error message given is "Invalid Argument". A simliar error appears if a new link is added, when fck_link.js also calls oEditor.FCKSelection.SelectNode( aLinks[0] ) from function Ok(); Browser name and OS: Bug appears in: IE8, Windows XP or Vista. Bug does not appear: IE6 or IE7. Also does not appear in IE8 with no doctype, a doctype of HTML3.2 or XHTML1/1.1. Only HTML 4! Fix: The problem appears to be in fckselection_ie.js, function FCKSelection.SelectNode. I think that if the statements in the try and the catch blocks are swapped round, so that it tries to create a text range first, instead of trying to create a control range first, it won't throw the error. The error is thrown outside of the try/catch block when executing oRange.select(). This bug has not been fixed on the nightly build. -- Ticket URL: <http://dev.fckeditor.net/ticket/3552> FCKeditor <http://www.fckeditor.net/> The text editor for Internet ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ FCKeditor-Trac mailing list FCKeditor-Trac@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fckeditor-trac