Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #30642
| From | Osmo Saarikumpu <osmo@weppipakki.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Then xmlns attribute in the XHTML DOM |
| Date | 2016-06-07 14:46 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <nj6c6l$s03$1@dont-email.me> (permalink) |
| References | <xmlns-20160607025524@ram.dialup.fu-berlin.de> |
On 07/06/2016 05:04, Stefan Ram wrote: > When no specific browser is targeted, just an implementation > of ECMAScript with the ECMAScript language bindings for DOM4, > and one wants to insert a span into the XHTML document > »this.document«, one might try this: > > span = document.createElement( 'span' ); > span.setAttribute( "xmlns", "http://www.w3.org/1999/xhtml" ); The span element does not have a xlmns attribute, only the document element (html) has it. > Especially, I'd like to know whether the last one, the one > that does no mention »w3.org«, already is correct.) Yes, it's the only correct one, assuming that your document has the html element with the required xmlns attribute set. -- Best wishes, Osmo
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Re: Then xmlns attribute in the XHTML DOM Osmo Saarikumpu <osmo@weppipakki.com> - 2016-06-07 14:46 +0300
csiph-web