Exception thrown in KHTMLPart::selection()

John Tapsell john at geola.co.uk
Wed Jan 19 18:25:23 GMT 2005


On Wednesday 19 January 2005 18:06, Jason Keirstead wrote:
> On Wednesday 19 January 2005 2:00 pm, John Tapsell wrote:
> > Actually that function throws it under 3 other conditions.  I thought
> > that too at first :)
>
> No it doesn't. Those other conditions are only for specific DOM node types.
> Your node is a DOM Range node and thus none of those apply.

One of us is confused ;)  RangeImpl::checkNodeWOffset uses the node you pass 
in - i.e. the text node, image node, paragraph node, etc where the image 
starts.


> The only possible causes for that exception in your case is passing a value
> < 0, or if you are passing a value > the child count. Neither of which
> should be happening in reality, so something is wrong somewhere.




More information about the kfm-devel mailing list