als-document 1.0.0-alpha → 1.0.1-alpha

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "als-document",
3
- "version": "1.0.0-alpha",
3
+ "version": "1.0.1-alpha",
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",
@@ -1,7 +1,7 @@
1
1
  function checkElement(el,selector) {
2
2
  if(selector == undefined) return true
3
3
  if(el == null) return false
4
- let {tag,classList,attributes,id,prev,ancestors,parents,prevAny} = selector
4
+ let {tag,classList,attribs,id,prev,ancestors,parents,prevAny} = selector
5
5
  if(typeof el === 'string') return false
6
6
  if(el.isSpecial) return false
7
7
  if(id !== undefined && el.id === null) return false
@@ -13,7 +13,7 @@ function checkElement(el,selector) {
13
13
  else if(classList !== undefined) {
14
14
  if(classList.every(e => el.classList.contains(e)) === false) return false
15
15
  }
16
- if(checkattributes(attributes,el) === false) return false
16
+ if(checkattributes(attribs,el) === false) return false
17
17
  if(checkElement(el.prev,prev) === false) return false
18
18
  if(checkAncestors(el.ancestors,ancestors) === false) return false
19
19
  if(checkParents(el.ancestors,parents) === false) return false