Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30642 > unrolled thread

Re: Then xmlns attribute in the XHTML DOM

Started byOsmo Saarikumpu <osmo@weppipakki.com>
First post2016-06-07 14:46 +0300
Last post2016-06-07 14:46 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Then xmlns attribute in the XHTML DOM Osmo Saarikumpu <osmo@weppipakki.com> - 2016-06-07 14:46 +0300

#30642 — Re: Then xmlns attribute in the XHTML DOM

FromOsmo Saarikumpu <osmo@weppipakki.com>
Date2016-06-07 14:46 +0300
SubjectRe: Then xmlns attribute in the XHTML DOM
Message-ID<nj6c6l$s03$1@dont-email.me>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web