On Mon, Feb 7, 2011 at 12:10 AM, Jorge <[email protected]> wrote:
> 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 ?

Those were the bugs I found advice for here:

   
http://webbugtrack.blogspot.com/2009/08/bug-179-innerhtml-love-outside-body-is.html

And a quick search for .innerHTML on Webkit bug list revealed these
(among others):

    https://bugs.webkit.org/show_bug.cgi?id=43953
    "innerHTML Delete HEAD and BODY tags"

    https://bugs.webkit.org/show_bug.cgi?id=45188
    "Setting innerHTML to a video element does not respect autoplay"

I haven't tested all these bugs myself on all platforms and Webkit
versions but I must believe to those, at least those on Webkit bug
tracker.

--
Diego


> --
> 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]
>

-- 
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]

Reply via email to