Update article.md
This commit is contained in:
parent
c14f6bb535
commit
e83b8d0b41
1 changed files with 1 additions and 1 deletions
|
@ -385,4 +385,4 @@ Methods to work with attributes are:
|
|||
For most needs, DOM properties can serve us well. We should refer to attributes only when DOM properties do not suit us, when we need exactly attributes, for instance:
|
||||
|
||||
- We need a non-standard attribute. But if it starts with `data-`, then we should use `dataset`.
|
||||
- We want to read the value "as written" in HTML. The value of the DOM property may be different, for instance `href` property is always a full URL, and we may want to get the "original" value.
|
||||
- We want to read the value "as written" in HTML. The value of the DOM property may be different, for instance the `href` property is always a full URL, and we may want to get the "original" value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue