### Bug description

First of all, thank you for the amazing tool!

I'm trying to produce an HTML report from .QMD and getting the following error: 
> ERROR: TypeError: Cannot read properties of undefined (reading 'startsWith')

It seems to be related to dyno-dom (as per debug log):
> Error loading deno-dom-native: Could not open library: Could not open library: dlopen(/Applications/quarto/bin/tools/deno_dom/libplugin.dylib, 0x0005): tried: '/Applications/quarto/bin/tools/deno_dom/libplugin.dylib' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))

Out of curiosity, when / why does deno-dom-native gets triggered? This is the first time I saw error and I've been using Quarto for >6 months. It would help me isolate the problem.

**Steps:**
- I ran: `quarto render _analysis_1/prediction.qmd --to html`
- Jupyter notebook gets produced (and everything looks okay, nothing out of place), assets are saved in a separate folder
- But then the error gets triggered when creating the HTML self-contained file
- The following error shows up:
> ERROR: TypeError: Cannot read properties of undefined (reading 'startsWith')

**Version:**
- I have ARM64 / Mac M1 architecture
- System: Mac OS Monterey (12.5.1 (21G83))
- I tried both 1.2.269 and 1.3.91 (pre-release) -- all checks pass

**Eliminating possible causes:**
- Is it common? No, I have produced several different reports earlier today, there were no significant differences between them
- Are there some large / unusual attachments, formats, etc? No.

**Troubleshooting steps:**
- I ran with `-log-level debug`, see the above error message about dyno-dom-native not being the right version (for ARM64_
- I ran `quarto check` -- all passes
- Updated Quarto to latest release and pre-release + ran quarto check -- all passes
- Tried to manually update dyno-dom to the latest release (0.1.35 supports ARM64) -- no difference


I'm unable to provide the underlying jupyter notebook due to confidentiality issues -- I'll try to reduce it and reproduce the error.

YAML Header
```md
---
title: Some title
author: Some name
date: 2022-01-09
format:
  html:
    toc: true
    toc-depth: 2
    code-fold: true
    self-contained: true
  revealjs:
    auto-stretch: true
    self-contained: true
    scrollable: true
    incremental: true
    preview-links: auto
    slide-number: true
    transition: slide
    background-transition: fade
    fig-align: center
jupyter: julia6-1.8
---
```

### Checklist

- [x] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2023-01-09T15:02:59Z
svilupp
bug needs-repro
closed
Error loading deno-dom-native / Cannot read properties of undefined (reading 'startsWith')
https://github.com/quarto-dev/quarto-cli/issues/3896