From 9300e1df2b85949be1c0e858e7436c51bd1612da Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Wed, 7 Jul 2021 12:37:56 -0400 Subject: delete all remaining orphaned pages in pl (#1417) --- .../web/api/parentnode/children/index.html | 97 ---------------------- files/pl/orphaned/web/api/parentnode/index.html | 91 -------------------- 2 files changed, 188 deletions(-) delete mode 100644 files/pl/orphaned/web/api/parentnode/children/index.html delete mode 100644 files/pl/orphaned/web/api/parentnode/index.html (limited to 'files/pl/orphaned/web/api/parentnode') diff --git a/files/pl/orphaned/web/api/parentnode/children/index.html b/files/pl/orphaned/web/api/parentnode/children/index.html deleted file mode 100644 index f7f80ac704..0000000000 --- a/files/pl/orphaned/web/api/parentnode/children/index.html +++ /dev/null @@ -1,97 +0,0 @@ ---- -title: ParentNode.children -slug: orphaned/Web/API/ParentNode/children -tags: - - API - - Dzieci - - Dziecko - - Kolekcja HTML - - Potomek - - Potomkowie - - Właściwość - - węzeł -translation_of: Web/API/ParentNode/children -original_slug: Web/API/ParentNode/children ---- -
{{ APIRef("DOM") }}
- -

The {{domxref("ParentNode")}} właściwość children jest właściwością tylko do odczytu (read-only) która zwraca aktualną kolekcję {{domxref("HTMLCollection")}} zawierającą wszystkie elementy podrzędne {{domxref("Element", "elements")}} węzła, na którym został wywołany.

- -

Składnia

- -
let children = node.children;
- -

Value

- -

{{ domxref("HTMLCollection") }} aktualna, uporządkowana kolekcja elementów DOM które są potomkami node. Możesz otrzymać pojedynczych potomków kolekcji używając albo {{domxref("HTMLCollection.item()", "item()")}} metody na kolekcji, albo używając notacji w stylu tablicowym języka JavaScript.

- -

Jeżeli element node nie ma potomków, wtedy children jest pustą listą o długości 0 (length of 0).

- -

Przykład

- -
const foo = document.getElementById('foo');
-for (let i = 0; i < foo.children.length; i++) {
-  console.log(foo.children[i].tagName);
-}
-
- -

Uzupełnienie

- -
// Nadpisuje natywny prototyp 'children'.
-// Dodaje Document & DocumentFragment wsparcie dla IE9 & Safari.
-// Zwraca tablicę zamiast HTMLCollection.
-;(function(constructor) {
-  if (constructor &&
-    constructor.prototype &&
-    constructor.prototype.children == null) {
-    Object.defineProperty(constructor.prototype, 'children', {
-      get: function() {
-        let i = 0, node, nodes = this.childNodes, children = [];
-        while (node = nodes[i++]) {
-          if (node.nodeType === 1) {
-            children.push(node);
-          }
-        }
-        return children;
-      }
-    });
-  }
-})(window.Node || window.Element);
-
- -

Specyfikacja

- - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('DOM WHATWG', '#dom-parentnode-children', 'ParentNode.children')}}{{Spec2('DOM WHATWG')}}Wstępna definicja
- -

Zgodność z przeglądarkami

- - - -

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

- -

Zobacz także

- - diff --git a/files/pl/orphaned/web/api/parentnode/index.html b/files/pl/orphaned/web/api/parentnode/index.html deleted file mode 100644 index f2d4862961..0000000000 --- a/files/pl/orphaned/web/api/parentnode/index.html +++ /dev/null @@ -1,91 +0,0 @@ ---- -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

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