From db26cf86829f9b43d29f18b9bbf197e9e2d55c31 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 14 Apr 2021 00:11:31 +0000 Subject: [CRON] sync translated content --- files/pl/_redirects.txt | 6 ++ files/pl/_wikihistory.json | 12 +-- .../web/api/parentnode/children/index.html | 97 ++++++++++++++++++++++ files/pl/web/api/parentnode/children/index.html | 96 --------------------- 4 files changed, 109 insertions(+), 102 deletions(-) create mode 100644 files/pl/orphaned/web/api/parentnode/children/index.html delete mode 100644 files/pl/web/api/parentnode/children/index.html (limited to 'files/pl') diff --git a/files/pl/_redirects.txt b/files/pl/_redirects.txt index 25b1412960..37438cfa54 100644 --- a/files/pl/_redirects.txt +++ b/files/pl/_redirects.txt @@ -1,3 +1,8 @@ +# DO NOT EDIT THIS FILE MANUALLY. +# Use the CLI instead: +# +# yarn content add-redirect +# # FROM-URL TO-URL /pl/docs/AJAX /pl/docs/Web/Guide/AJAX /pl/docs/AJAX/Na_początek /pl/docs/Web/Guide/AJAX/Getting_Started @@ -2006,6 +2011,7 @@ /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/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 /pl/docs/Web/API/Stylesheet /pl/docs/Web/API/CSSStyleSheet /pl/docs/Web/API/Stylesheet/cssRules /pl/docs/Web/API/CSSRuleList diff --git a/files/pl/_wikihistory.json b/files/pl/_wikihistory.json index 1975db680c..fb9326f5e5 100644 --- a/files/pl/_wikihistory.json +++ b/files/pl/_wikihistory.json @@ -2165,12 +2165,6 @@ "Web/API/ParentNode": { "modified": "2020-10-15T22:19:13.921Z" }, - "Web/API/ParentNode/children": { - "modified": "2020-10-29T07:01:42.075Z", - "contributors": [ - "dk333" - ] - }, "Web/API/Push_API": { "modified": "2019-03-23T22:08:29.784Z", "contributors": [ @@ -11745,5 +11739,11 @@ "kaka0204", "SurmaAa" ] + }, + "orphaned/Web/API/ParentNode/children": { + "modified": "2020-10-29T07:01:42.075Z", + "contributors": [ + "dk333" + ] } } \ No newline at end of file diff --git a/files/pl/orphaned/web/api/parentnode/children/index.html b/files/pl/orphaned/web/api/parentnode/children/index.html new file mode 100644 index 0000000000..f7f80ac704 --- /dev/null +++ b/files/pl/orphaned/web/api/parentnode/children/index.html @@ -0,0 +1,97 @@ +--- +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

+ +
    +
  • Interfejsy {{domxref("ParentNode")}} {{domxref("ChildNode")}}.
  • +
  • +
    Typy obiektów implementujące ten interfejs: {{domxref("Document")}}, {{domxref("Element")}}, {{domxref("DocumentFragment")}}.
    +
  • +
  • +
    {{domxref("Node.childNodes")}}
    +
  • +
diff --git a/files/pl/web/api/parentnode/children/index.html b/files/pl/web/api/parentnode/children/index.html deleted file mode 100644 index 1d8576d64b..0000000000 --- a/files/pl/web/api/parentnode/children/index.html +++ /dev/null @@ -1,96 +0,0 @@ ---- -title: ParentNode.children -slug: Web/API/ParentNode/children -tags: - - API - - Dzieci - - Dziecko - - Kolekcja HTML - - Potomek - - Potomkowie - - Właściwość - - węzeł -translation_of: 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

- -
    -
  • Interfejsy {{domxref("ParentNode")}} {{domxref("ChildNode")}}.
  • -
  • -
    Typy obiektów implementujące ten interfejs: {{domxref("Document")}}, {{domxref("Element")}}, {{domxref("DocumentFragment")}}.
    -
  • -
  • -
    {{domxref("Node.childNodes")}}
    -
  • -
-- cgit v1.2.3-54-g00ecf