@odoo/owl 2.8.2 → 2.8.3

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.
@@ -330,7 +330,10 @@ function interpolate(s) {
330
330
  const whitespaceRE = /\s+/g;
331
331
  // using a non-html document so that <inner/outer>HTML serializes as XML instead
332
332
  // of HTML (as we will parse it as xml later)
333
- const xmlDoc = document.implementation.createDocument(null, null, null);
333
+ let xmlDoc;
334
+ if (typeof document !== "undefined") {
335
+ xmlDoc = document.implementation.createDocument(null, null, null);
336
+ }
334
337
  const MODS = new Set(["stop", "capture", "prevent", "self", "synthetic"]);
335
338
  let nextDataIds = {};
336
339
  function generateId(prefix = "") {