You need to turn Option Strict on, the reason is because if you look up the documentation for HtmlElement.FirstChild you would realize that the object returned is an HtmlElement and not a String and with Option Strict on it would've thrown an error. So try changing the conditional statement to:
Code:If spanElement.FirstChild.TagName <> "i" Then




Reply With Quote
