Closed albertfdp closed 9 years ago
Well, the only altered attribute is the style
one so I do see why your existing classes are not kept.
Do you rather mean that the gif.className
is not added to the div?
Sorry, I was not clear: it is just consistency. I am replacing both placeholders and background images on the same page and I think that using the same convention would make sense.
Yep you are right, it makes sense :-)
Thank you @albertfdp!
When a div where the background image is replaced, the existing classes were not kept.