als-document 1.4.1 → 1.4.3

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.
@@ -25,22 +25,22 @@ class SingleNode extends Node {
25
25
  insertAdjacentElement(position, newElement) {
26
26
  if(position === 'afterbegin') position = 'beforebegin'
27
27
  if(position === 'beforeend') position = 'afterend'
28
- super.insertAdjacentElement(position, newElement)
28
+ return super.insertAdjacentElement(position, newElement)
29
29
  }
30
30
  insertAdjacentHTML(position, html) {
31
31
  if(position === 'afterbegin') position = 'beforebegin'
32
32
  if(position === 'beforeend') position = 'afterend'
33
- super.insertAdjacentHTML(position, html)
33
+ return super.insertAdjacentHTML(position, html)
34
34
  }
35
35
  insertAdjacentText(position, text) {
36
36
  if(position === 'afterbegin') position = 'beforebegin'
37
37
  if(position === 'beforeend') position = 'afterend'
38
- super.insertAdjacentText(position, text)
38
+ return super.insertAdjacentText(position, text)
39
39
  }
40
40
  insert(position, element) {
41
41
  if(position === 1) position = 0
42
42
  if(position === 2) position = 3
43
- super.insert(position,element)
43
+ return super.insert(position,element)
44
44
  }
45
45
 
46
46
  appendChild(_) { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "als-document",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "A powerful HTML parser & DOM manipulation library for both backend and frontend.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",