I am rendering my content via v-html and I need to get span that has img element, so I could specifically add style style to span. :has() is supported in latest browser. Are there ant alternatives?
Asked
Active
Viewed 18 times
0
-
Yes, loop all elements and find only ones that contains image. – Justinas Oct 05 '22 at 09:52
-
Yee, but looping all elements isn`t the best solution, is there any else? – userinho Oct 05 '22 at 09:56
-
1Yes, there is `:has()` for newer browsers – Justinas Oct 05 '22 at 10:49
-
Hi, please make an effort regarding your question next time. This is not meeting the standards. [ask] – kissu Oct 06 '22 at 04:08