From 40edc745dfb5c152e12080748f9357b376e8dbe9 Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 18 May 2021 00:44:37 +0000 Subject: [CRON] sync translated content --- files/pl/_redirects.txt | 1 + files/pl/_wikihistory.json | 6 +- files/pl/orphaned/web/api/parentnode/index.html | 91 +++++++++++++++++++++++++ files/pl/web/api/parentnode/index.html | 90 ------------------------ 4 files changed, 95 insertions(+), 93 deletions(-) create mode 100644 files/pl/orphaned/web/api/parentnode/index.html delete mode 100644 files/pl/web/api/parentnode/index.html (limited to 'files/pl') diff --git a/files/pl/_redirects.txt b/files/pl/_redirects.txt index 8e33087365..b3ad81c075 100644 --- a/files/pl/_redirects.txt +++ b/files/pl/_redirects.txt @@ -2008,6 +2008,7 @@ /pl/docs/Web/API/Node/localName /pl/docs/Web/API/Element/localName /pl/docs/Web/API/Node/namespaceURI /pl/docs/Web/API/Element/namespaceURI /pl/docs/Web/API/Node/prefix /pl/docs/Web/API/Element/prefix +/pl/docs/Web/API/ParentNode /pl/docs/orphaned/Web/API/ParentNode /pl/docs/Web/API/ParentNode/childElementCount /pl/docs/Web/API/Element/childElementCount /pl/docs/Web/API/ParentNode/children /pl/docs/orphaned/Web/API/ParentNode/children /pl/docs/Web/API/Storage /pl/docs/Web/API/Web_Storage_API diff --git a/files/pl/_wikihistory.json b/files/pl/_wikihistory.json index 6f491c5759..10f5a85317 100644 --- a/files/pl/_wikihistory.json +++ b/files/pl/_wikihistory.json @@ -3598,9 +3598,6 @@ "Arfphis" ] }, - "Web/API/ParentNode": { - "modified": "2020-10-15T22:19:13.921Z" - }, "Web/API/Push_API": { "modified": "2019-03-23T22:08:29.784Z", "contributors": [ @@ -11242,6 +11239,9 @@ "Ptak82" ] }, + "orphaned/Web/API/ParentNode": { + "modified": "2020-10-15T22:19:13.921Z" + }, "orphaned/Web/API/ParentNode/children": { "modified": "2020-10-29T07:01:42.075Z", "contributors": [ diff --git a/files/pl/orphaned/web/api/parentnode/index.html b/files/pl/orphaned/web/api/parentnode/index.html new file mode 100644 index 0000000000..f2d4862961 --- /dev/null +++ b/files/pl/orphaned/web/api/parentnode/index.html @@ -0,0 +1,91 @@ +--- +title: ParentNode +slug: orphaned/Web/API/ParentNode +tags: + - API + - DOM + - Finding Elements + - Finding Nodes + - Interface + - Locating Elements + - Locating Nodes + - Managing Elements + - Managing Nodes + - Mixin + - NeedsTranslation + - Node + - ParentNode + - Reference + - Selectors + - TopicStub +translation_of: Web/API/ParentNode +original_slug: Web/API/ParentNode +--- +
{{APIRef("DOM")}}
+ +

The ParentNode mixin contains methods and properties that are common to all types of {{domxref("Node")}} objects that can have children. It's implemented by {{domxref("Element")}}, {{domxref("Document")}}, and {{domxref("DocumentFragment")}} objects.

+ +

See Locating DOM elements using selectors to learn how to use CSS selectors to find nodes or elements of interest.

+ +

Properties

+ +
+
{{domxref("ParentNode.childElementCount")}} {{readonlyInline}}
+
Returns the number of children of this ParentNode which are elements.
+
{{domxref("ParentNode.children")}} {{readonlyInline}}
+
Returns a live {{domxref("HTMLCollection")}} containing all of the {{domxref("Element")}} objects that are children of this ParentNode, omitting all of its non-element nodes.
+
{{domxref("ParentNode.firstElementChild")}} {{readonlyInline}}
+
Returns the first node which is both a child of this ParentNode and is also an Element, or null if there is none.
+
{{domxref("ParentNode.lastElementChild")}} {{readonlyInline}}
+
Returns the last node which is both a child of this ParentNode and is an Element, or null if there is none.
+
+ +

Methods

+ +
+
{{domxref("ParentNode.append()")}} {{experimental_inline}}
+
Inserts a set of {{domxref("Node")}} objects or {{domxref("DOMString")}} objects after the last child of the ParentNode. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.
+
{{domxref("ParentNode.prepend()")}} {{experimental_inline}}
+
Inserts a set of {{domxref("Node")}} objects or {{domxref("DOMString")}} objects before the first child of the ParentNode. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.
+
{{domxref("ParentNode.querySelector()")}}
+
Returns the first {{domxref("Element")}} with the current element as root that matches the specified group of selectors.
+
{{domxref("ParentNode.querySelectorAll()")}}
+
Returns a {{domxref("NodeList")}} representing a list of elements with the current element as root that matches the specified group of selectors.
+
+ +

Specification

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('DOM WHATWG', '#parentnode', 'ParentNode')}}{{Spec2('DOM WHATWG')}}Split the ElementTraversal interface into {{domxref("ChildNode")}} and {{domxref("ParentNode")}}. The {{domxref("ParentNode.firstElementChild")}}, {{domxref("ParentNode.lastElementChild")}}, and {{domxref("ParentNode.childElementCount")}} properties are now defined on the latter. Added the {{domxref("ParentNode.children")}} property, and the {{domxref("ParentNode.querySelector()")}}, {{domxref("ParentNode.querySelectorAll()")}}, {{domxref("ParentNode.append()")}}, and {{domxref("ParentNode.prepend()")}} methods.
{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}{{Spec2('Element Traversal')}}Added the initial definition of its properties to the ElementTraversal pure interface and used it on {{domxref("Element")}}.
+ +

Browser compatibility

+ + + +

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

+ +

See also

+ + diff --git a/files/pl/web/api/parentnode/index.html b/files/pl/web/api/parentnode/index.html deleted file mode 100644 index 2cbf79f11c..0000000000 --- a/files/pl/web/api/parentnode/index.html +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: ParentNode -slug: Web/API/ParentNode -tags: - - API - - DOM - - Finding Elements - - Finding Nodes - - Interface - - Locating Elements - - Locating Nodes - - Managing Elements - - Managing Nodes - - Mixin - - NeedsTranslation - - Node - - ParentNode - - Reference - - Selectors - - TopicStub -translation_of: Web/API/ParentNode ---- -
{{APIRef("DOM")}}
- -

The ParentNode mixin contains methods and properties that are common to all types of {{domxref("Node")}} objects that can have children. It's implemented by {{domxref("Element")}}, {{domxref("Document")}}, and {{domxref("DocumentFragment")}} objects.

- -

See Locating DOM elements using selectors to learn how to use CSS selectors to find nodes or elements of interest.

- -

Properties

- -
-
{{domxref("ParentNode.childElementCount")}} {{readonlyInline}}
-
Returns the number of children of this ParentNode which are elements.
-
{{domxref("ParentNode.children")}} {{readonlyInline}}
-
Returns a live {{domxref("HTMLCollection")}} containing all of the {{domxref("Element")}} objects that are children of this ParentNode, omitting all of its non-element nodes.
-
{{domxref("ParentNode.firstElementChild")}} {{readonlyInline}}
-
Returns the first node which is both a child of this ParentNode and is also an Element, or null if there is none.
-
{{domxref("ParentNode.lastElementChild")}} {{readonlyInline}}
-
Returns the last node which is both a child of this ParentNode and is an Element, or null if there is none.
-
- -

Methods

- -
-
{{domxref("ParentNode.append()")}} {{experimental_inline}}
-
Inserts a set of {{domxref("Node")}} objects or {{domxref("DOMString")}} objects after the last child of the ParentNode. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.
-
{{domxref("ParentNode.prepend()")}} {{experimental_inline}}
-
Inserts a set of {{domxref("Node")}} objects or {{domxref("DOMString")}} objects before the first child of the ParentNode. {{domxref("DOMString")}} objects are inserted as equivalent {{domxref("Text")}} nodes.
-
{{domxref("ParentNode.querySelector()")}}
-
Returns the first {{domxref("Element")}} with the current element as root that matches the specified group of selectors.
-
{{domxref("ParentNode.querySelectorAll()")}}
-
Returns a {{domxref("NodeList")}} representing a list of elements with the current element as root that matches the specified group of selectors.
-
- -

Specification

- - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('DOM WHATWG', '#parentnode', 'ParentNode')}}{{Spec2('DOM WHATWG')}}Split the ElementTraversal interface into {{domxref("ChildNode")}} and {{domxref("ParentNode")}}. The {{domxref("ParentNode.firstElementChild")}}, {{domxref("ParentNode.lastElementChild")}}, and {{domxref("ParentNode.childElementCount")}} properties are now defined on the latter. Added the {{domxref("ParentNode.children")}} property, and the {{domxref("ParentNode.querySelector()")}}, {{domxref("ParentNode.querySelectorAll()")}}, {{domxref("ParentNode.append()")}}, and {{domxref("ParentNode.prepend()")}} methods.
{{SpecName('Element Traversal', '#interface-elementTraversal', 'ElementTraversal')}}{{Spec2('Element Traversal')}}Added the initial definition of its properties to the ElementTraversal pure interface and used it on {{domxref("Element")}}.
- -

Browser compatibility

- - - -

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

- -

See also

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