jsf.js_next_gen 4.0.0-RC.25 → 4.0.0-RC.28

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.
@@ -520,10 +520,10 @@ class DomQuery {
520
520
  const doc = document.implementation.createHTMLDocument("");
521
521
  markup = trim(markup);
522
522
  let lowerMarkup = markup.toLowerCase();
523
- if (lowerMarkup.indexOf('<!doctype') != -1 ||
524
- lowerMarkup.indexOf('<html') != -1 ||
525
- lowerMarkup.indexOf('<head') != -1 ||
526
- lowerMarkup.indexOf('<body') != -1) {
523
+ if (lowerMarkup.search(/\<\!doctypeW+/gi) != -1 ||
524
+ lowerMarkup.search(/\<html\w+/gi) != -1 ||
525
+ lowerMarkup.search(/\<head\W+/gi) != -1 ||
526
+ lowerMarkup.search(/\<body\W+/gi) != -1) {
527
527
  doc.documentElement.innerHTML = markup;
528
528
  return new DomQuery(doc.documentElement);
529
529
  }
Binary file
Binary file