to set the text content of a <style> tag in HTML, and I'm looking to switch to something else. Currently the alternatives I'm looking at are setting the element's textContent, or setting the first text node inside the <style> tag's .nodeValue or .data. Any opinions on which is better/faster/safer?
ok 🤔 as ur looking for the best way, the best way is following 'the separation of concerns' which in this case means not to put styles inside html files.
I can help with this 😄
Обсуждают сегодня