Closed loesler closed 1 month ago
If an element el does not have an id, el.id returns an (empty) string but el.getAttribute("id") returns null (at least in Opera), cf. #741 A condition has been added to catch errors (when using image or code without any attribute).
el
id
el.id
el.getAttribute("id")
null
If an element
el
does not have anid
,el.id
returns an (empty) string butel.getAttribute("id")
returnsnull
(at least in Opera), cf. #741 A condition has been added to catch errors (when using image or code without any attribute).