From 10609d35e92f68f2dacbb1be07d31e736a2b487a Mon Sep 17 00:00:00 2001 From: 720 <71604450+T34-active@users.noreply.github.com> Date: Wed, 15 May 2024 17:15:42 +0800 Subject: [PATCH] `dump()` replaces `console.log()` (#33621) --- files/en-us/web/api/document/anchors/index.md | 2 +- files/en-us/web/api/document_object_model/examples/index.md | 2 +- .../en-us/web/api/event/comparison_of_event_targets/index.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/en-us/web/api/document/anchors/index.md b/files/en-us/web/api/document/anchors/index.md index 6221c4543abfb1c..576e7b3036199ca 100644 --- a/files/en-us/web/api/document/anchors/index.md +++ b/files/en-us/web/api/document/anchors/index.md @@ -21,7 +21,7 @@ An {{domxref("HTMLCollection")}}. ```js if (document.anchors.length >= 5) { - dump("found too many anchors"); + console.log("found too many anchors"); } ``` diff --git a/files/en-us/web/api/document_object_model/examples/index.md b/files/en-us/web/api/document_object_model/examples/index.md index 5fec70d40b78b99..efa78b231712f17 100644 --- a/files/en-us/web/api/document_object_model/examples/index.md +++ b/files/en-us/web/api/document_object_model/examples/index.md @@ -159,7 +159,7 @@ const ss = document.styleSheets; for (let i = 0; i < ss.length; i++) { for (let j = 0; j < ss[i].cssRules.length; j++) { - dump(`${ss[i].cssRules[j].selectorText}\n`); + console.log(`${ss[i].cssRules[j].selectorText}\n`); } } ``` diff --git a/files/en-us/web/api/event/comparison_of_event_targets/index.md b/files/en-us/web/api/event/comparison_of_event_targets/index.md index 1f240565a0870c0..fb012f3f4393ca0 100644 --- a/files/en-us/web/api/event/comparison_of_event_targets/index.md +++ b/files/en-us/web/api/event/comparison_of_event_targets/index.md @@ -193,8 +193,8 @@ The `relatedTarget` property for the `mouseover` event holds the node that the m ```xml ```