Thanks Katrina,
For any javascript problems the first place I look is quriksmode.com. unfortunatly if you want to support IE you have to fork your code ie one section for IE one for the rest. All I can put this down to is a bug in ie 8 rc1. Robin -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Katrina Sent: 25 February 2009 16:39 To: [email protected] Subject: Re: [WSG] inserting text in to IE8 Robin Gorry wrote: > > > Hi all. > > > > My problem isn't strictly standards but more JavaScript compatibility between > IE versions. > In IE6, 7 I can insert text on a range (either on highlighted text or where > the cursor is placed) using pasteHTML(). > > In IE8 I can only pasteHTML() when text is highlighted and not when the > cursor is placed. > > See here for very simple example. > > http://robing.xtools.co.nz/demo_cms/test_editor/ > > Any idea's why? > > Robin. > > I don't know a lot about ranges, but I hope this article from PPK might help you. http://www.quirksmode.org/dom/range_intro.html This is the WSG list, so it is reasonable to accept that the list members would promote the W3C DOM method of going about getting the range, rather than via proprietary methods. Does look as though this is cutting edge stuff :) Kat ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] *******************************************************************
