Fixed a bug that occurred when BODY was contentEditable, as is typical in iframes. Also added a new testcase for that situation.