I'm trying to find a html map in a HTMLDocument
:
<html>
<map name="imagemap"></map>
</html>
With hdoc
my HTMLDocument
, I tried the following to get the map but it keeps returning null
:
hdoc.getElement(hdoc.getDefaultRootElement(), HTML.Attribute.NAME, "imagemap")
Am I doing something wrong? How do I get the map?