Comments (2)
Hmm, nice catch. I'll take a quick look this week and try to fix it.
from domjson.
So I took a (very belated...) look, and this totally makes sense. The computed styles are pulled from two sources: the inline style, and the resolved CSS styles. The resolved styles aren't part of the DOM, so they are not reflected in the output. One solution to this could be to add a applyComputedStyles
option to the .toDOM
method.
from domjson.
Related Issues (20)
- Create page and demos
- Add browser compatibility table to docs
- Create demos
- When serialProperties is not false, .toDOM() produces multiple copies
- Speed optimizations
- "The input element's type ('checkbox') does not support selection." HOT 2
- Issues with UMD, automatically generate UMD HOT 5
- Getting the complete DOM HOT 4
- better reprasentation of json output HOT 1
- [question] How to pass pure html in toJSON() method? HOT 2
- Help guide has the wrong implementation of Node.replaceChild() HOT 1
- Usage w/ Jsdom: TypeError: Cannot read property 'href' of undefined HOT 12
- has some errors on NodeJS environment HOT 2
- Question about banned/disallowed tags HOT 9
- IE 11 InvalidStateError during copyJSON HOT 3
- I do not get instructions HOT 3
- Request to include xpath of the HTML element in the JSON
- How to handle DOM mutations?
- Cannot import this inside jest tests HOT 1
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 domjson.