Determine the htmlnode name/type (eg li)

How does one know if the HtmlNode I'm working with is an <li>? I know the NodeType is an Element but how do you determine if that is an <li>

Let me know if there's any more information you need.

Answers


You can check it like this, just use the Name property:

if( node.Name == "li" )

Need Your Help

Dynamically set the source of the autocomplete and then dynamically run it

php jquery html input autocomplete

I have input:text field where I search names with ajax help to connect to database. On each key-up it does this:

run multiple expect instances through a shell script in background to collect logs

shell expect

I'm trying to run multiple expect instances using a shell script in the background, but what actually happens is that the expect processes are killed when the shell script terminates even after run...