images class attribute is lost
See original GitHub issueOnce yall has executed, my images are losing it’s class property and a width and height attribute is forced to appear.
That fails with my needs, because I’m using that image class to use it as object-fit:'cover'
in it’s className.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Python classes losing attributes - Stack Overflow
During the course of execution of my gtk python application, some of my class objects mysteriously lose attributes, causing some of the ...
Read more >Alt attribute for images is missing in AMP - WordPress.org
After installing AMP plugin I found out that some of the img alt attribute is missing in my output version. I'm using 2...
Read more >Missing the class attribute 'ExtensionOfNativeClass'
After updating unity to the version 2018.3. 7f1 I have tihs error in my released project: 'Saves' is missing the class attribute ' ......
Read more >JavaScript Working With Images - Medium
2. Set Src Attribute In JavaScript. In JavaScript, get a reference to the image tag using the querySelector() method. Then, assign an image...
Read more >Retain class attribute of embedded svg element ... - GitHub
It is really great that this works but unfortunately all formatting from the style and/or class attributes are lost.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the relevant section, I think this is closer to what you want: https://github.com/malchata/yall.js/blob/master/dist/yall-2.0.1.min.js
I need to perform more testing before I push this into a release, but if this fix works for you, feel free to use it. Just be aware that it has not been widely tested across browsers yet!
No sweat! I’m going to keep this issue open in the meantime while I test. When I release version 2.0.1, I’ll close this and tag you so you can get the official release.