Skip to content

Commit

Permalink
dump() replaces console.log() (#33621)
Browse files Browse the repository at this point in the history
  • Loading branch information
T34-active committed May 15, 2024
1 parent 4dc759e commit 10609d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/document/anchors/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ An {{domxref("HTMLCollection")}}.

```js
if (document.anchors.length >= 5) {
dump("found too many anchors");
console.log("found too many anchors");
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ The `relatedTarget` property for the `mouseover` event holds the node that the m
```xml
<hbox id="outer">
<hbox id="inner"
onmouseover="dump('mouseover ' + event.relatedTarget.id + ' > ' + event.target.id + '\n');"
onmouseout="dump('mouseout ' + event.target.id + ' > ' + event.relatedTarget.id + '\n');"
onmouseover="console.log('mouseover ' + event.relatedTarget.id + ' > ' + event.target.id + '\n');"
onmouseout="console.log('mouseout ' + event.target.id + ' > ' + event.relatedTarget.id + '\n');"
style="margin: 100px; border: 10px solid black; width: 100px; height: 100px;" />
</hbox>
```

0 comments on commit 10609d3

Please sign in to comment.