Comments (2)
Serialization is a browser thing, and jsdom follows the spec at https://w3c.github.io/DOM-Parsing/#xml-serialization
Replacing entities is not unsafe; it's required by the parsing specification. See inikulin/parse5#261 (comment) for a previous discussion.
from jsdom.
OK, but this is not true:
Replacing entities is not unsafe; it's required by the parsing specification. See inikulin/parse5#261 (comment) for a previous discussion.
JSDOM is unsafe for parsing XML. Entities are not always exchangeable. Would be nice to state it in the docs so that people don't waste time on using JSDOM when in a specific use case it will not work.
from jsdom.
Related Issues (20)
- Stop polyfilling existing globals HOT 4
- HTMLElement.name is "s" instead of "HTMLElement" HOT 3
- How to use jsdom in nuxt2? HOT 1
- JSDOM fails in real-world environments like reddit, and youtube/rumble watch page
- `querySelector(":is([a],b):not(.c)")` throws a "not a valid selector" error HOT 1
- `runScripts: 'dangerously'` changes the output of `Object.getOwnPropertyNames(jsdom.window)`
- Feature request: when pretendToBeVisual is false, "requestAnimationFrame is not defined" should be a more informative error
- Cannot set an oklch background color with JavaScript
- Colon-Prefixed Classes Break :scope Selectors in querySelector/querySelectorAll
- Is there a way to deep clone a JSDOM object?
- Element's checkVisibility method not implemented in JSDOM
- Provide a `waitUntilComplete()` method to help testing frameworks detect pending tasks
- Any way to disable implied tags/auto closing tags? HOT 3
- `doc.write` is not working as browsers HOT 7
- `doc.write` is not working as browsers
- Unable to fetch <svg> and <g> tags using JSDOM library HOT 1
- Font Awesome Kit: Error
- The script module will not retrieve the script from src and execute it HOT 1
- Bug: DOMException [SyntaxError]: 'h1,h2' is not a valid selector HOT 5
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 jsdom.