@textbus/platform-browser 3.3.3 → 3.3.4

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.
@@ -1294,9 +1294,11 @@ let Parser = Parser_1 = class Parser {
1294
1294
  return f.read(el);
1295
1295
  });
1296
1296
  const startIndex = slot.index;
1297
- Array.from(el.childNodes).forEach(child => {
1298
- this.readComponent(child, slot);
1299
- });
1297
+ let startNode = el.firstChild;
1298
+ while (startNode) {
1299
+ this.readComponent(startNode, slot);
1300
+ startNode = startNode.nextSibling;
1301
+ }
1300
1302
  const endIndex = slot.index;
1301
1303
  this.applyFormats(slot, formats.map(i => {
1302
1304
  return {
package/bundles/index.js CHANGED
@@ -1296,9 +1296,11 @@ exports.Parser = Parser_1 = class Parser {
1296
1296
  return f.read(el);
1297
1297
  });
1298
1298
  const startIndex = slot.index;
1299
- Array.from(el.childNodes).forEach(child => {
1300
- this.readComponent(child, slot);
1301
- });
1299
+ let startNode = el.firstChild;
1300
+ while (startNode) {
1301
+ this.readComponent(startNode, slot);
1302
+ startNode = startNode.nextSibling;
1303
+ }
1302
1304
  const endIndex = slot.index;
1303
1305
  this.applyFormats(slot, formats.map(i => {
1304
1306
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/platform-browser",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@tanbo/di": "^1.1.4",
29
29
  "@tanbo/stream": "^1.1.9",
30
- "@textbus/core": "^3.3.3",
30
+ "@textbus/core": "^3.3.4",
31
31
  "reflect-metadata": "^0.1.13"
32
32
  },
33
33
  "devDependencies": {
@@ -48,5 +48,5 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/textbus/textbus.git/issues"
50
50
  },
51
- "gitHead": "eed9200db6a32b45de15797d655f07939c88764b"
51
+ "gitHead": "38e3a1379ed4d6f9c85790613255cd8c6f9f89b9"
52
52
  }