From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/domstringmap/index.html | 99 ++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 files/ru/web/api/domstringmap/index.html (limited to 'files/ru/web/api/domstringmap') diff --git a/files/ru/web/api/domstringmap/index.html b/files/ru/web/api/domstringmap/index.html new file mode 100644 index 0000000000..bea01845fe --- /dev/null +++ b/files/ru/web/api/domstringmap/index.html @@ -0,0 +1,99 @@ +--- +title: DOMStringMap +slug: Web/API/DOMStringMap +tags: + - API +translation_of: Web/API/DOMStringMap +--- +

{{ APIRef("HTML DOM") }}

+ +

Used by the {{ htmlattrxref("dataset") }} HTML attribute to represent data for custom attributes added to elements.

+ +

Доступные методы

+ + + + + + + + + + + + + + + + + + + +
DOMString getDataAttr(in DOMString prop);
boolean hasDataAttr(in DOMString prop);
void removeDataAttr(in DOMString prop);
void removeProp(in nsIAtom attr);
void setDataAttr(in DOMString prop, in DOMString value);
+ +

Методы

+ +

hasDataAttr()

+ +
boolean hasDataAttr(
+  in DOMString prop
+);
+
+ +

Аргументы

+ +
+
prop
+
The property for which to check for the existence of a value.
+
+ +

Возвращаемое значение

+ +

true if the property exists; otherwise false.

+ +

removeDataAttr()

+ +
void removeDataAttr(
+  in DOMString prop
+);
+
+ +

Parameters

+ +
+
prop
+
The property to remove from the data set.
+
+ +

removeProp()

+ +

Removes the property from the dataset object. Used to update the dataset object when data-* attribute has been removed from the element.

+ +
void removeProp(
+  in nsIAtom attr
+);
+
+ +

Parameters

+ +
+
attr
+
The property to remove from the dataset.
+
+ +

Поддержка браузерами

+ +

 

+ + + +

{{Compat("api.DOMStringMap")}}

+ +

См. далее

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