The issue arises with the text that reads as follows:
316.6.1 Structures. Structures shall not be constructed
This is represented in HTML as:
<b>
<s>
<span style='font-size:10.0pt'>316.6.1 Structures</span>
</s>
</b>
<s>
<span style='font-size:10.0pt'>. Structures shall not be
<span style='letter-spacing:.75pt'> </span>
constructed
</span>
</s>
However, there seems to be an issue with the text-decoration
property not displaying the line-through
value correctly:
span_array = document.getElementsByTagName('span'));
> HTMLCollection(74812)
span_array[10648].innerText
> "316.6.1 Structures"
window.getComputedStyle(span_array[10648], null).getPropertyValue("text-decoration");
> "none solid rgb(0, 0, 0)"
span_array[10649].innerText
> ". Structures shall not be constructed"
window.getComputedStyle(span_array[10649], null).getPropertyValue("text-decoration");
> "none solid rgb(0, 0, 0)"
I would anticipate a result such as: line-through solid rgb(0, 0, 0)
.
In essence, my goal is to find a way to flag the strikeout text mentioned above. For your information, I should be able to execute the script using Google Chrome Driver/Selenium.