On 18/02/07, Danny Wachsstock <[EMAIL PROTECTED]> wrote:
> Yehuda:
>   I do know about $('<..html/>'), but my mother always said "Don't hang with
> those innerHTML kids, you'll learn bad habits." Seriously, I find it very
> hard to debug the assemble-a-string-and-have-the-interpreter-figure-it-out
> sort of thing, like innerHTML and eval. I'm not a strict standardista, but
> using actual code and HTML lets Firebug or the validator find my stupid
> syntax errors much more easily.
>

I may not be a guru (but have been using it for a long time), but
while jQuery does use innerHTML, it does in a way to work around
limitations in the browsers. Without it, I don't think you would be
able to create select options or table cells/rows via the $("<html>")
method.

All of the supported browsers recognise innerHTML and I can't see it
going away any time soon, or any new browser shipping without support
for it as so many sites rely on it to work. Much like how XHTML strict
(served with correct content type) will likely never see widespread
adoption. I think HTML 5 (http://blog.whatwg.org/faq/) is more likely
to take off IF Internet Explorer 8 adopts it (as it simply expands on
what people use now, and is not a complete break from HTML like XHTML
2 is), but as Microsoft are pushing XAML that may not happen.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to