I'm currently dealing with a dynamically created div that features styled characters like:
<div>Hello <b>J</b>oe</div>
and my goal is to identify which characters are styled (in this case, the letter J).
I've already attempted using window.getComputedStyle()
but I haven't been able to extract the style character by character.
Here's a larger example:
<div id="testing">H<b>i</b> I <b>a</b>m b<b>o</b>b</div>
Expected output: getDivStyle("testing") =>
H: false
i: true
I: false
a: true
m: false
B: false
o: true
b: false
Thank you in advance for your assistance!