Re: Adding a namespace to a Dom document
Marina Dorelli <[email protected]> Tue, 25 May 2010 21:36:15 +0200
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
I'm sorry I was in a hurry, and I took the wrong address...
well I tried to use createAttributeNS and then root.appendChild()
so I should use root.setAttributeNS("http://www.w3.org/2000/xmlns/",
"xmlns:foo",
"http://foo.org#"); , no?
I've tried this way but it doesn't work, I saved my document and i can't
find the attribute I set
On Tue, May 25, 2010 at 3:14 PM, Boris Zbarsky <[email protected]> wrote:
> Not sure why you didn't reply on the list...
>
> On 5/25/10 8:45 AM, Marina Dorelli wrote:
>
>> <htmlxmlns="http://www.w3.org/1999/xhtml"
>>
>>
>> xmlns:dc="http://purl.org/dc/elements/1.1/"
>> version="XHTML+RDFa 1.0" xml:lang="en">
>>
>
> OK, so you can do this using setAttributeNS, no?
>
> -Boris
>