Re: [WSG] The Evils of innerHTML

2006-01-19 Thread Martin Heiden
Joshua, on Wednesday, January 18, 2006 at 23:56 wsg@webstandardsgroup.org wrote: innerHTML doesn't work with XHTML, etc,. I know... and it's not a DOM method... but do people consider it okay to use when it seems otherwise impractical to use standard methods? Do you know the discussions at

Re: [WSG] The Evils of innerHTML

2006-01-19 Thread Justin Carter
On 1/19/06, Joshua Street [EMAIL PROTECTED] wrote: Is it? I'm using AHAH (H = HTML, as opposed to XML) to dynamically retrieve some content and innerHTML seems infinitely more sensible: ... innerHTML doesn't work with XHTML, etc,. I know... and it's not a DOM method... but do people consider

Re: [WSG] The Evils of innerHTML

2006-01-19 Thread Robin Berjon
On Jan 19, 2006, at 11:15, Justin Carter wrote: If the response snippet of XHTML is valid once inserted into the page (obviously it is never viewed by itself) then I don't see where the argument is coming from. So am I missing something? Indeed, I always thought that having innerHTML not work

[WSG] The Evils of innerHTML

2006-01-18 Thread Joshua Street
Is it? I'm using AHAH (H = HTML, as opposed to XML) to dynamically retrieve some content and innerHTML seems infinitely more sensible: the content being pulled in has an indeterminate number of paragraphs, so short of parsing the incoming document for paragraphs, recreating elements, and setting

Re: [WSG] The Evils of innerHTML

2006-01-18 Thread Terrence Wood
Joshua Street said: do people consider it okay to use Supposedly faster than DOM methods, and usually requires less code. Personally, I don't see it as a problem for HTML documents, just need to be mindful that it will break as we move forward towards XHTML. otherwise impractical to use

Re: [WSG] The Evils of innerHTML

2006-01-18 Thread Joshua Street
On 1/19/06, Terrence Wood [EMAIL PROTECTED] wrote: When would it be impractical to use standards methods? In this case, where I already have server-built markup that I'm perfectly happy with and would have to traverse + rebuild that with DOM methods. It's (seemingly, to someone with not a great