On Feb 7, 3:56 am, Jorge <jo...@jorgechamorro.com> wrote:
> On Feb 7, 3:34 am, Miller Medeiros <lis...@millermedeiros.com> wrote:
>
> > this code here:http://pastebin.com/KAbQKDJN(postedby rmurphey a couple
> > weeks ago) -  doesn't work all the times inside a webview.. but I haven't
> > seen it fail inside the browser...
>
> > I've also seen some other people reporting the same bug, just search on
> > stack overflow or google and you will find a couple.. - most of them are
> > phonegap projects since most people that are doing HTML inside a WebView are
> > probably using it..
>
> That test is broken. element.innerHTML= foo does not imply that
> element.innerHTML.length === foo.length. Full stop. Game over.

For example:

e=document.createElement('div')
<div>​</div>

e.innerHTML= foo= "<div />"
"<div />"

e.innerHTML
"<div></div>"

foo
"<div />"
--
Jorge.

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to