automation_model 1.0.560-dev → 1.0.561-dev

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.
@@ -112,9 +112,10 @@ function findMatchingElements(textToMatch, options = {}, root = document) {
112
112
  for (let i = 0; i < elements.length; i++) {
113
113
  let el = elements[i];
114
114
  for (let j = 0; j < climb; j++) {
115
- if (el.parentElement) {
116
- el = el.parentElement;
115
+ if (!el.parentElement) {
116
+ break;
117
117
  }
118
+ el = el.parentElement;
118
119
  }
119
120
  newElements.push(el);
120
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation_model",
3
- "version": "1.0.560-dev",
3
+ "version": "1.0.561-dev",
4
4
  "description": "An automation infrastructure module to be use for generative AI automation projects.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",