File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { NAMESPACE } from '@xmldom/xmldom' ;
1
2
import { isElement , isText } from '#src/dom' ;
2
3
import { type XmlNodeInterface } from '#src/types' ;
3
4
import XmlNode from '#src/xml_nodes/xml_node' ;
@@ -30,8 +31,8 @@ export default class XmlNodeImporter {
30
31
31
32
// element is like <element namespace="uri"/>
32
33
/* istanbul ignore if -- @preserve Hard of test */
33
- if ( element . hasAttributeNS ( 'http://www.w3.org/2000/xmlns/' , '' ) ) {
34
- node . setAttribute ( 'xmlns' , element . getAttributeNS ( 'http://www.w3.org/2000/xmlns/' , '' ) ) ;
34
+ if ( element . hasAttributeNS ( NAMESPACE . XMLNS , '' ) ) {
35
+ node . setAttribute ( 'xmlns' , element . getAttributeNS ( NAMESPACE . XMLNS , '' ) ) ;
35
36
}
36
37
37
38
// eslint-disable-next-line unicorn/prefer-spread
You can’t perform that action at this time.
0 commit comments