Update article.md

This commit is contained in:
Brent Guffens 2018-02-06 09:55:22 +01:00 committed by GitHub
parent c14f6bb535
commit e83b8d0b41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.