I'm facing a strange behavior.
I have a script that applies inline CSS to elements from its stylesheet with computedStyle
method.
This is a way to copy rich text instead of plain text.
But after the copy, I need to delete the style=""
attribute.
When this happens, some style attributes (like color
, disappears) while I can see in the inspector that this attribute is still linked to my element by its class
.
See there :
https://jsfiddle.net/sxybrcug/ (color
disappears but border-color
is okay)
Do you know what's happening ?
Thanks
` inherits ? It has its own color property from its class.
– Ann MB Apr 13 '20 at 22:27