I got a HtmlDocument doc
like this:
I tried to get the tag div
with id
of "description":
HtmlElement elem=doc.GetElementById("description");
But I got tag meta
with name
of "description" instead of div
.
Eventually,someone on StackOverFlow
gave me this and this:
The method GetElementById
will return the first element with id
or name
equals the String
parameter id
of GetElementById
.
It might because of MS gives a webcontrol
the same name as id.