Se eseguo dir(image) mi stampa questo, dovrebbe essere un dizionario di tuple e oggetti di tipo Node... è qui che il metodo getAttribute("tag") dovrebbe andare a cercare l'attributo.
(l'indentazione l'ho aggiunta io...)
Codice:
<NamedNodeMap at 8433b2c:
{
(None, u'src'): <Attribute Node at 8433b8c: Name="src", Value="/images/firefox/clear.gif">,
(None, u'width'): <Attribute Node at 843742c: Name="width", Value="1">,
(None, u'height'): <Attribute Node at 8433fcc: Name="height", Value="20">
}
>