question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

images class attribute is lost

See original GitHub issue

Once 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
malchatacommented, May 16, 2018

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!

0reactions
malchatacommented, May 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found