Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33421
| From | Martin Honnen <martin.honnen@gmx.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: inner outer html and appendchild |
| Date | 2017-05-29 12:25 +0200 |
| Organization | Liberty Development |
| Message-ID | <oggsuk$l9f$1@news.albasani.net> (permalink) |
| References | <4N-dnWxtPtO7I7bEnZ2dnUU7-KPNnZ2d@westnet.com.au> <oggpj2$tsj$1@news.albasani.net> <id6dnY5WDoqya7bEnZ2dnUU7-afNnZ2d@westnet.com.au> |
On 29.05.2017 12:21, Andrew Poulos wrote:
>>> Ideally I'd like to do something like
>>> document.body.appendChild(str);
>>
>> Use
>> document.body.insertAdjacentHTML('beforeEnd', str)
>
> Thanks.
>
>> https://www.w3.org/TR/DOM-Parsing/#widl-Element-insertAdjacentHTML-void-DOMString-position-DOMString-text
>> and http://caniuse.com/#search=insertAdjacentHTML suggests it is usable
>
> MDN suggests it's supported by IE as far back as version 4.
That is true but didn't help for cross-browser scripting as long as
Mozilla did not want to support it. But they changed that years ago.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
inner outer html and appendchild Andrew Poulos <ap_prog@hotmail.com> - 2017-05-29 16:22 +1000
Re: inner outer html and appendchild Julio Di Egidio <julio@diegidio.name> - 2017-05-29 01:30 -0700
Re: inner outer html and appendchild Martin Honnen <martin.honnen@gmx.de> - 2017-05-29 11:28 +0200
Re: inner outer html and appendchild Andrew Poulos <ap_prog@hotmail.com> - 2017-05-29 20:21 +1000
Re: inner outer html and appendchild Martin Honnen <martin.honnen@gmx.de> - 2017-05-29 12:25 +0200
Re: inner outer html and appendchild Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-29 19:04 +0200
Re: inner outer html and appendchild Julio Di Egidio <julio@diegidio.name> - 2017-05-29 10:20 -0700
Re: inner outer html and appendchild Andrew Poulos <ap_prog@hotmail.com> - 2017-05-30 07:40 +1000
Re: inner outer html and appendchild Julio Di Egidio <julio@diegidio.name> - 2017-05-29 22:32 -0700
Re: inner outer html and appendchild Andrew Poulos <ap_prog@hotmail.com> - 2017-05-30 17:29 +1000
Re: inner outer html and appendchild Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-30 13:13 +0200
Re: inner outer html and appendchild Tim Streater <timstreater@greenbee.net> - 2017-05-30 12:34 +0100
Re: inner outer html and appendchild Julio Di Egidio <julio@diegidio.name> - 2017-05-30 05:28 -0700
csiph-web