Update article.md
"**and** more attributes...
This commit is contained in:
parent
676ffb718a
commit
8826f07c53
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ Because an attribute is more convenient to manage. The state can be changed as e
|
||||||
div.setAttribute('order-state', 'canceled');
|
div.setAttribute('order-state', 'canceled');
|
||||||
```
|
```
|
||||||
|
|
||||||
But there may be a possible problem with custom attributes. What if we use a non-standard attribute for our purposes and later the standard introduces it and makes it do something? The HTML language is alive, it grows, more attributes appear to suit the needs of developers. There may be unexpected effects in such case.
|
But there may be a possible problem with custom attributes. What if we use a non-standard attribute for our purposes and later the standard introduces it and makes it do something? The HTML language is alive, it grows, and more attributes appear to suit the needs of developers. There may be unexpected effects in such case.
|
||||||
|
|
||||||
To avoid conflicts, there exist [data-*](https://html.spec.whatwg.org/#embedding-custom-non-visible-data-with-the-data-*-attributes) attributes.
|
To avoid conflicts, there exist [data-*](https://html.spec.whatwg.org/#embedding-custom-non-visible-data-with-the-data-*-attributes) attributes.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue