nbhi 0.6.11 → 0.6.12

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.
@@ -73,15 +73,15 @@ export default selector => {
73
73
  element.localName === 'li' ||
74
74
  (element.hasAttribute('child') && !element.shadowRoot)) {
75
75
  if (element.hasAttribute('data-slot') && element.dataset.slot === name) {
76
- element.textContent = value;
76
+ element.innerHTML = value;
77
77
  } else {
78
78
  const match = element.querySelector(`[data-slot="${ name }"]`);
79
79
  if (match) {
80
- match.textContent = value;
80
+ match.innerHTML = value;
81
81
  }
82
82
  }
83
- } else if (!name && element.textContent !== value) {
84
- element.textContent = value;
83
+ } else if (!name && element.innerHTML !== value) {
84
+ element.innerHTML = value;
85
85
  } else {
86
86
  let slot = element.querySelector(`[slot="${ name }"]`);
87
87
  if (!slot) {
@@ -90,8 +90,8 @@ export default selector => {
90
90
  element.append(slot);
91
91
  }
92
92
 
93
- if (slot.textContent !== value) {
94
- slot.textContent = value;
93
+ if (slot.innerHTML !== value) {
94
+ slot.innerHTML = value;
95
95
  }
96
96
  }
97
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbhi",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "No-Build HTML Includes (NBHI) is a simple library that allows you to include html files into other html files and turns them into [web components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components). Lazy initialization of content (when entering the viewport) and a one line call to update/hydrate content in your html pages. No build tools required, no `package.json` needed.",
5
5
  "keywords": [
6
6
  "web-components",