This commit is contained in:
Ilya Kantor 2019-08-14 23:56:32 +03:00
parent aa4273fbc2
commit 99cbc65d80
2 changed files with 2 additions and 1 deletions

View file

@ -298,7 +298,7 @@ try {
*!*
alert(e.name); // SyntaxError
*/!*
alert(e.message); // Unexpected token o in JSON at position 0
alert(e.message); // Unexpected token o in JSON at position 2
}
```

View file

@ -14,4 +14,5 @@ The demo:
[iframe border="1" src="solution" height=180]
P.S. For this task we can assume that list items are text-only. No nested tags.
P.P.S. Prevent the native browser selection of the text on clicks.