From 156b518735b8da6cc954105b0a1250ca31449381 Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 22 May 2021 00:42:07 +0000 Subject: [CRON] sync translated content --- files/pl/_redirects.txt | 1 + files/pl/_wikihistory.json | 18 ++--- .../orphaned/web/api/childnode/remove/index.html | 92 ++++++++++++++++++++++ files/pl/web/api/childnode/remove/index.html | 91 --------------------- 4 files changed, 102 insertions(+), 100 deletions(-) create mode 100644 files/pl/orphaned/web/api/childnode/remove/index.html delete mode 100644 files/pl/web/api/childnode/remove/index.html (limited to 'files/pl') diff --git a/files/pl/_redirects.txt b/files/pl/_redirects.txt index b3ad81c075..660f48d5c3 100644 --- a/files/pl/_redirects.txt +++ b/files/pl/_redirects.txt @@ -1930,6 +1930,7 @@ /pl/docs/Web/API/AudioContext/createDynamicsCompressor /pl/docs/Web/API/BaseAudioContext/createDynamicsCompressor /pl/docs/Web/API/Canvas_API/Tutorial/Optymalizacja_canvas /pl/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas /pl/docs/Web/API/Canvas_API/Tutorial/rysowanie_ksztaltow /pl/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes +/pl/docs/Web/API/ChildNode/remove /pl/docs/orphaned/Web/API/ChildNode/remove /pl/docs/Web/API/Document/firstChild /pl/docs/conflicting/Web/API/Node/firstChild /pl/docs/Web/API/Document/namespaceURI /pl/docs/conflicting/Web/API/Node/namespaceURI /pl/docs/Web/API/DocumentOrShadowRoot/activeElement /pl/docs/Web/API/Document/activeElement diff --git a/files/pl/_wikihistory.json b/files/pl/_wikihistory.json index 10f5a85317..9eb38ac6da 100644 --- a/files/pl/_wikihistory.json +++ b/files/pl/_wikihistory.json @@ -1564,15 +1564,6 @@ "arronei" ] }, - "Web/API/ChildNode/remove": { - "modified": "2020-10-15T21:53:18.455Z", - "contributors": [ - "SphinxKnight", - "Fidosek", - "griter", - "krystian71115" - ] - }, "Web/API/Console": { "modified": "2019-03-23T23:09:41.834Z", "contributors": [ @@ -11239,6 +11230,15 @@ "Ptak82" ] }, + "orphaned/Web/API/ChildNode/remove": { + "modified": "2020-10-15T21:53:18.455Z", + "contributors": [ + "SphinxKnight", + "Fidosek", + "griter", + "krystian71115" + ] + }, "orphaned/Web/API/ParentNode": { "modified": "2020-10-15T22:19:13.921Z" }, diff --git a/files/pl/orphaned/web/api/childnode/remove/index.html b/files/pl/orphaned/web/api/childnode/remove/index.html new file mode 100644 index 0000000000..6b77c445b2 --- /dev/null +++ b/files/pl/orphaned/web/api/childnode/remove/index.html @@ -0,0 +1,92 @@ +--- +title: ChildNode.remove() +slug: orphaned/Web/API/ChildNode/remove +translation_of: Web/API/ChildNode/remove +original_slug: Web/API/ChildNode/remove +--- +
{{APIRef("DOM")}}
+ +

Metoda ChildNode.remove() usuwa obiekt z drzewa, do którego należy.

+ +

Składnia

+ +
node.remove();
+
+ +

Przykład

+ +

Użycie remove()

+ +
<div id="div-01">To jest div-01</div>
+<div id="div-02">To jest div-02</div>
+<div id="div-03">To jest div-03</div>
+
+ +
var el = document.getElementById('div-02');
+el.remove(); // Usuwa div z ID 'div-02'
+
+ +

ChildNode.remove() jest poza zakresem

+ +

Metoda remove() nie wchodzi w zakres wyrażenia with. Zobacz  {{jsxref("Symbol.unscopables")}}, aby uzyskać więcej informacji.

+ +
with(node) {
+  remove();
+}
+// ReferenceError: remove is not defined 
+ +

Polyfill

+ +

Można utworzyć polyfill metody remove() w Internet Explorer 9 (lub wyższej wersji) za pomocą następującego kodu: 

+ +
// from:https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
+(function (arr) {
+  arr.forEach(function (item) {
+    if (item.hasOwnProperty('remove')) {
+      return;
+    }
+    Object.defineProperty(item, 'remove', {
+      configurable: true,
+      enumerable: true,
+      writable: true,
+      value: function remove() {
+        this.parentNode.removeChild(this);
+      }
+    });
+  });
+})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
+ +

Specyfikacje

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('DOM WHATWG', '#dom-childnode-remove', 'ChildNode.remove')}}{{Spec2('DOM WHATWG')}}Initial definition.
{{SpecName('DOM4', '#dom-childnode-remove', 'ChildNode.remove')}}{{Spec2('DOM4')}} 
+ +

Kompatybilność z przeglądarkami

+ +
{{Compat("api.ChildNode.remove")}}
+ +

Zobacz również

+ + diff --git a/files/pl/web/api/childnode/remove/index.html b/files/pl/web/api/childnode/remove/index.html deleted file mode 100644 index 377e529db2..0000000000 --- a/files/pl/web/api/childnode/remove/index.html +++ /dev/null @@ -1,91 +0,0 @@ ---- -title: ChildNode.remove() -slug: Web/API/ChildNode/remove -translation_of: Web/API/ChildNode/remove ---- -
{{APIRef("DOM")}}
- -

Metoda ChildNode.remove() usuwa obiekt z drzewa, do którego należy.

- -

Składnia

- -
node.remove();
-
- -

Przykład

- -

Użycie remove()

- -
<div id="div-01">To jest div-01</div>
-<div id="div-02">To jest div-02</div>
-<div id="div-03">To jest div-03</div>
-
- -
var el = document.getElementById('div-02');
-el.remove(); // Usuwa div z ID 'div-02'
-
- -

ChildNode.remove() jest poza zakresem

- -

Metoda remove() nie wchodzi w zakres wyrażenia with. Zobacz  {{jsxref("Symbol.unscopables")}}, aby uzyskać więcej informacji.

- -
with(node) {
-  remove();
-}
-// ReferenceError: remove is not defined 
- -

Polyfill

- -

Można utworzyć polyfill metody remove() w Internet Explorer 9 (lub wyższej wersji) za pomocą następującego kodu: 

- -
// from:https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
-(function (arr) {
-  arr.forEach(function (item) {
-    if (item.hasOwnProperty('remove')) {
-      return;
-    }
-    Object.defineProperty(item, 'remove', {
-      configurable: true,
-      enumerable: true,
-      writable: true,
-      value: function remove() {
-        this.parentNode.removeChild(this);
-      }
-    });
-  });
-})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
- -

Specyfikacje

- - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('DOM WHATWG', '#dom-childnode-remove', 'ChildNode.remove')}}{{Spec2('DOM WHATWG')}}Initial definition.
{{SpecName('DOM4', '#dom-childnode-remove', 'ChildNode.remove')}}{{Spec2('DOM4')}} 
- -

Kompatybilność z przeglądarkami

- -
{{Compat("api.ChildNode.remove")}}
- -

Zobacz również

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