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]
*******************************************************************