You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/1-document/05-basic-dom-node-properties/3-tag-in-comment/solution.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Risposta: **`BODY`**.
10
10
</script>
11
11
```
12
12
13
-
Cosa succede passo dopo passo:
13
+
Vediamo cosa succede passo dopo passo:
14
14
15
15
1. Il contenuto di `<body>` è rimpiazzato con il commento. Il commento è `<!--BODY-->`, poiché `body.tagName == "BODY"`. Abbiamo detto che, `tagName` è sempre maiuscolo in modalità HTML.
16
16
2. Il commento è ora l'unico nodo figlio, perciò è il risultato di `body.firstChild`.
0 commit comments