if I either remove "class" or change it to "className" the file will be minified but it will not add the class to the object. However, if I save the file without minifying it and using the code above, then the object will get the class so I know that it's a bug in the minifyer and not with the code itself.
This is the part of the code that doesn't work (with a different id, src and class name) :
if I either remove "class" or change it to "className" the file will be minified but it will not add the class to the object. However, if I save the file without minifying it and using the code above, then the object will get the class so I know that it's a bug in the minifyer and not with the code itself.