domql 1.6.32 → 1.6.33

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,7 +1,7 @@
1
1
  {
2
2
  "name": "domql",
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
- "version": "1.6.32",
4
+ "version": "1.6.33",
5
5
  "repository": "https://github.com/domql/domql",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org"
@@ -31,14 +31,18 @@ export const applyExtend = (element, parent, options = {}) => {
31
31
  let childExtendStack = []
32
32
  if (parent) {
33
33
  // Assign parent attr to the element
34
- element.parent = parent
35
34
  if (!options.ignoreChildExtend) {
36
35
  if (props && props.ignoreChildExtend) return
37
36
 
38
37
  childExtendStack = getExtendStack(parent.childExtend)
39
38
 
39
+ // if (parent.childExtendRecursive && (props && !props.ignoreChildExtendRecursive)) {
40
40
  if (parent.childExtendRecursive) {
41
+ const canExtendRecursive = props && !props.ignoreChildExtendRecursive && element.key !== '__text'
42
+ if (!canExtendRecursive) return
43
+
41
44
  const childExtendRecursiveStack = getExtendStack(parent.childExtendRecursive)
45
+ // add error if childExtendRecursive contains element which goes to infinite loop
42
46
  childExtendStack = childExtendStack.concat(childExtendRecursiveStack)
43
47
  element.childExtendRecursive = parent.childExtendRecursive
44
48
  }