0

I have a strange attribute, $MyStyleTemplate;placeholder::color="red".

When i am using setAttribute it causes an error saying that my attribute name is invalid.

Is there's a possible way to bypass it?

dlvdls2
  • 36
  • 5
  • 1
    Why do you have that attribute when it is not allowed? Can you perhaps NOT have that attribute? – mplungjan Oct 09 '22 at 08:42
  • I would suggest using a [data attribute](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes) – Konrad Oct 09 '22 at 08:44

0 Answers0