Comparing version 0.5.2 to 0.5.3
@@ -35,3 +35,3 @@ // Generated by CoffeeScript 2.5.1 | ||
if (node.namespaceURI === xincludeNS && node.localName === 'include' && (resolve != null)) { | ||
href = node.getAttributeNS(xincludeNS, 'href'); | ||
href = node.getAttribute('href'); | ||
if (href != null) { | ||
@@ -38,0 +38,0 @@ [xml, next] = resolve(href); |
{ | ||
"name": "cruftless", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Yet another simple way to parse and generate XML", | ||
@@ -5,0 +5,0 @@ "main": "lib/cruftless.js", |
@@ -458,3 +458,13 @@ <!-- | ||
Note that the resolve function is expected to resolve the href within a context | ||
and then return both the XML _and_ a new resolve function that is capable fo | ||
resolving hrefs from within the context of the resolved file. In this case, | ||
we're not really doing that. In fact, this resolver will **always** return the | ||
same snippet of XML, but it doesn't require a lot of imagination to figure out | ||
how to turn this resolver into something sensible. | ||
If you are not passing the resolve function, then it will simply leave the | ||
xinclude unharmed. | ||
---- | ||
Markdown generated from [./README.js.md](./README.js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) |
469
64081
18