Studio-42/elRTE — pull request #6 by betalb (2011-10-20 08:49:46+00:00)
Title: w3cRange.getStart/End returns null in IE7,8 on empty document

w3cRange.getStart and w3cRange.getEnd returns null in IE7 and IE8 on empty document

firstChild and lastChild in internet explorer can't access text nodes if it is just space, tab or CR.

There are few places where code don't check if returned node is not null

Maybe it's better to fix all this places instead of fixing w3cRange object, but for now proposed code just mimics chrome behaviour in this case and return `document` node