From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/element/hasattributens/index.html | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 files/fr/web/api/element/hasattributens/index.html (limited to 'files/fr/web/api/element/hasattributens/index.html') diff --git a/files/fr/web/api/element/hasattributens/index.html b/files/fr/web/api/element/hasattributens/index.html deleted file mode 100644 index d30aca00e1..0000000000 --- a/files/fr/web/api/element/hasattributens/index.html +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: element.hasAttributeNS -slug: Web/API/Element/hasAttributeNS -tags: - - API - - Attributs - - DOM - - Element - - Méthodes -translation_of: Web/API/Element/hasAttributeNS ---- -

{{ APIRef("DOM") }}

- -

Résumé

- -

hasAttributeNS renvoie une valeur booléenne indiquant si l'élément courant possède ou non l'attribut spécifié.

- -

Syntaxe

- -
result =
-element.hasAttributeNS(
-namespace,
-localName)
- -
-
result
-
Une valeur booléenne true ou false.
-
namespace
-
Une chaîne spécifiant l'espace de noms de l'attribut.
-
localName
-
Le nom de l'attribut.
-
- -

Exemple

- -
// Vérifie que l'attribut existe
-// avant de définir une valeur
-var d = document.getElementById("div1");
-if (d.hasAttributeNS(
-        "http://www.mozilla.org/ns/specialspace/",
-        "special-align")) {
-   d.setAttribute("align", "center");
-}
-
- -

Notes

- -

{{ DOMAttributeMethods() }}

- -

Spécification

- - -- cgit v1.2.3-54-g00ecf