Comments (3)
Error msg from the parser is provided below:
XMkL Parsing Error: mismatched tag. Expected: </img>
from astro.
img
is a void element and as such does not need to be closed. https://html.spec.whatwg.org/multipage/syntax.html#void-elements
You might find this article interesting too https://jakearchibald.com/2023/against-self-closing-tags-in-html/
When using DOMParser, you'll want to specify that you're parsing HTML.
from astro.
Ty so much for providing me the solution and articles!
Specifying HTML does solve my problem.
from astro.
Related Issues (20)
- Lightningcss does not resolve url() inside an astro scoped style
- Experimental Rewrites - Including search params not matching index route for rewrites HOT 5
- Imported components in mdx content collection pages lose client scripts HOT 2
- Following installation steps for a template does not create the template HOT 1
- Remove duplicate class name HOT 2
- Astro gets stuck on installing dependencies (using terminal inside VS Code)
- Terminal hangs when installing dependencies in VS Code HOT 1
- IntrinsicAttributes and HTMLAttributes have conflicts HOT 3
- Empty Content Collections with defined scema don't generate typescript types HOT 4
- After installing Netlify adapter no content displays for any posts HOT 1
- build error [vite] websocket server error : port is already in use HOT 1
- NPM build misses a post HOT 2
- Baffling loss of styles in Markdown HOT 4
- astro markdown Chinese html appears garbled HOT 1
- Astro fails to hydrate svelte component in Safari 13. HOT 2
- Production build fails on static deployments when using path aliases HOT 7
- Astro delivering empty content/pages HOT 1
- `astro check` tool reached heap limit allocation failed (JavaScript heap out of memory) at Node.js 22 HOT 1
- Astro actions cause warning in dev mode for static pages HOT 2
- i18n Issue: Astro encountered an unexpected line of code.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.