Skip to content

Commit

Permalink
Changed the default namespace from 'DAV:' to nothing, allowing to kee…
Browse files Browse the repository at this point in the history
…p out-of-namespace tags in the properties
  • Loading branch information
AdrienCastex committed Jun 29, 2017
1 parent f8f6e00 commit 635ce3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/helper/XML.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function seekForNS(node, parentNS) {
return ns;
}
function mutateNodeNS(node, parentNS) {
if (parentNS === void 0) { parentNS = { _default: 'DAV:' }; }
if (parentNS === void 0) { parentNS = {}; }
if (!node)
return;
var nss = seekForNS(node, parentNS);
Expand Down
2 changes: 1 addition & 1 deletion src/helper/XML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function seekForNS(node : any, parentNS : any) : any
return ns;
}

function mutateNodeNS(node : any, parentNS = { _default: 'DAV:' })
function mutateNodeNS(node : any, parentNS = { })
{
if(!node)
return;
Expand Down

0 comments on commit 635ce3f

Please sign in to comment.