@epa-wg/custom-element 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/http-request.js CHANGED
@@ -66,6 +66,13 @@ export class HttpRequestElement extends HTMLElement
66
66
  { slice.data = await response.json();
67
67
  update();
68
68
  }catch(_e){}
69
+ if( r.headers['content-type']?.includes('xml'))
70
+ try
71
+ { const s = await response.text();
72
+ const parser = new DOMParser();
73
+ slice.data = parser.parseFromString(s, 'application/xml')?.documentElement;
74
+ update();
75
+ }catch(_e){}
69
76
  }
70
77
 
71
78
  attributeChangedCallback(name, oldValue, newValue)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@epa-wg/custom-element",
4
- "version": "0.0.33",
4
+ "version": "0.0.34",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "contributions": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@epa-wg/custom-element",
4
- "version": "0.0.33",
4
+ "version": "0.0.34",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "contributions": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epa-wg/custom-element",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Declarative Custom Element as W3C proposal PoC with native(XSLT) based templating",
5
5
  "browser": "custom-element.js",
6
6
  "module": "custom-element.js",