How to use the @aurelia/runtime-html.DOM.isNodeInstance function in @aurelia/runtime-html

To help you get started, we’ve selected a few @aurelia/runtime-html examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / aurelia / packages / testing / src / h.ts View on Github external
//   let cmd = attr.slice(lastIdx + 1);
          //   cmd = cmd ? kebabCase(cmd) : 'bind';
          //   el.setAttribute(`${kebabCase(attr.slice(0, lastIdx))}.${cmd}`, value);
          // }
        }
      }
    }
  }
  const appender = (el as HTMLTemplateElement).content != null ? (el as HTMLTemplateElement).content : el;
  for (const child of children) {
    if (child == null) {
      continue;
    }
    if (Array.isArray(child)) {
      for (const child_child of child) {
        appender.appendChild(DOM.isNodeInstance(child_child) ? child_child : DOM.createTextNode(`${child_child}`));
      }
    } else {
      appender.appendChild(DOM.isNodeInstance(child) ? child : DOM.createTextNode(`${child}`));
    }
  }
  return el;
};
github aurelia / aurelia / packages / testing / src / h.ts View on Github external
// }
        }
      }
    }
  }
  const appender = (el as HTMLTemplateElement).content != null ? (el as HTMLTemplateElement).content : el;
  for (const child of children) {
    if (child == null) {
      continue;
    }
    if (Array.isArray(child)) {
      for (const child_child of child) {
        appender.appendChild(DOM.isNodeInstance(child_child) ? child_child : DOM.createTextNode(`${child_child}`));
      }
    } else {
      appender.appendChild(DOM.isNodeInstance(child) ? child : DOM.createTextNode(`${child}`));
    }
  }
  return el;
};
github aurelia / aurelia / packages / testing / dist / esnext / h.js View on Github external
//   let cmd = attr.slice(lastIdx + 1);
                    //   cmd = cmd ? kebabCase(cmd) : 'bind';
                    //   el.setAttribute(`${kebabCase(attr.slice(0, lastIdx))}.${cmd}`, value);
                    // }
                }
            }
        }
    }
    const appender = el.content != null ? el.content : el;
    for (const child of children) {
        if (child == null) {
            continue;
        }
        if (Array.isArray(child)) {
            for (const child_child of child) {
                appender.appendChild(DOM.isNodeInstance(child_child) ? child_child : DOM.createTextNode(`${child_child}`));
            }
        }
        else {
            appender.appendChild(DOM.isNodeInstance(child) ? child : DOM.createTextNode(`${child}`));
        }
    }
    return el;
};
//# sourceMappingURL=h.js.map
github aurelia / aurelia / packages / testing / dist / esnext / h.js View on Github external
}
            }
        }
    }
    const appender = el.content != null ? el.content : el;
    for (const child of children) {
        if (child == null) {
            continue;
        }
        if (Array.isArray(child)) {
            for (const child_child of child) {
                appender.appendChild(DOM.isNodeInstance(child_child) ? child_child : DOM.createTextNode(`${child_child}`));
            }
        }
        else {
            appender.appendChild(DOM.isNodeInstance(child) ? child : DOM.createTextNode(`${child}`));
        }
    }
    return el;
};
//# sourceMappingURL=h.js.map