Comment vérifier l'élément a un attribut js
let result = element.hasAttribute(name);
Clever Corncrake
let result = element.hasAttribute(name);