On Feb 6, 11:57 pm, Diego Perini <[email protected]> wrote:
> On Sun, Feb 6, 2011 at 7:54 PM, Jorge <[email protected]> wrote:
> > On Feb 6, 4:25 pm, Diego Perini <[email protected]> wrote:
>
> >> By creating elements using DOM methods you are doing it correctly. If
> >> you can completely avoid using ".innerHTML" property you also
> >> potentially avoid known problems with it.
>
> > innerHTML known problems ? In Chrome/Safari ? No. Sorry but no, sorry.
> > Perhaps in IEs...
>
> I didn't specify which browsers are affected by ".innerHTML" bugs
> since for the purpose it doesn't matter.
>
> However are you sure Webkit is free of bugs related to ".innerHTML" ?
> Really sure ?
>
> Try changing the "title" or the "head" elements using ".innerHTML" and
> you will see problems arise even in Webkit.
I'm doing it right now, and I see nothing wrong :
title= document.getElementsByTagName('title')[0]
<title>
"
innerHTML or document.createElement or both? -
The JSMentors JavaScript Discussion Group |
Google Groups
"
</title>
title.innerHTML="Hello"
"Hello"
title
<title>Hello</title>
(And I'm seeing "Hello" in the window title)
What should have happened instead ?
--
Jorge.
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]