From: Hans-Georg Michna on
On Mon, 05 Apr 2010 02:57:16 -0400, David Mark wrote:

>BTW, your test threw an exception at line 2 (before jQuery was even
>involved) in Opera 6.

Oops? The lines in question were:

>> var x = document.createElement("div");
>> x.innerHTML = "<span class='foo\rbar baz'>hey</span>";

Any idea why Opera doesn't like innerHTML here? Is it the
out-of-DOM div, the span in the div, or the \r that it does not
like? I don't have Opera installed.

This almost looks as if you should write innerHTML again from
scratch for your library. It seems that innerHTML is rather
fickle in some browsers. This reminds me of the severe
restrictions it has in Internet Explorer. Bad!

This is a pity. innerHTML can often replace several lines of
code with just a short piece of HTML, which is also easier to
read. I wish it would work universally without exception.

Hans-Georg