[Javascript] Retaining values
Troy III Ajnej
trojani2000 at hotmail.com
Tue Apr 12 09:07:55 CDT 2011
I still believe that the "wisdom" is to: use tools for what they were meant to.
And the moral of the story would be:
-Don't use hammer to drive a screw!
nor vice versa.
That's all there there is.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy III
progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Date: Tue, 12 Apr 2011 09:49:28 -0400
> From: paulf at quillandmouse.com
> To: javascript at lists.evolt.org
> Subject: Re: [Javascript] Retaining values
> >
> > Moral of the story: 'innerHTML == EVIL!'
> >
> > Like the old 'document.write()' before it, it can't be trusted to
> > leave your document alone.
> >
> > So in future use standard DOM methods [like 'appendChild'] and
> > generally you'll be fine [tho' it's a bit more verbose].
>
> Thanks for this. I've often wondered about the wisdom of innerHTML, but
> I've never seen any official warnings about it. Nice to see real world
> confirmation.
>
> Paul
>
> --
> Paul M. Foster
> http://noferblatz.com
> http://quillandmouse.com
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
More information about the Javascript
mailing list