Correct mis-use of "it's"
This commit is contained in:
parent
ac7daa516f
commit
6af9a2e2a4
14 changed files with 29 additions and 29 deletions
|
@ -55,7 +55,7 @@ Also, there's a global variable named by `id` that references the element:
|
|||
```
|
||||
|
||||
```warn header="Please don't use id-named global variables to access elements"
|
||||
This behavior is described [in the specification](http://www.whatwg.org/specs/web-apps/current-work/#dom-window-nameditem), so it's kind of standard. But it is supported mainly for compatibility.
|
||||
This behavior is described [in the specification](http://www.whatwg.org/specs/web-apps/current-work/#dom-window-nameditem), so it's a kind of standard. But it is supported mainly for compatibility.
|
||||
|
||||
The browser tries to help us by mixing namespaces of JS and DOM. That's fine for simple scripts, inlined into HTML, but generally isn't a good thing. There may be naming conflicts. Also, when one reads JS code and doesn't have HTML in view, it's not obvious where the variable comes from.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue