Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from github/dev
Update docs
- Loading branch information
Showing
21 changed files
with
603 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
# getAttribute | ||
# Get Attribute | ||
|
||
## Rule Details | ||
|
||
As HTML attributes are case insensitive, prefer using lowercase. | ||
|
||
👎 Examples of **incorrect** code for this rule: | ||
|
||
```js | ||
// bad | ||
el.getAttribute('autoComplete') | ||
``` | ||
|
||
```js | ||
el.getAttribute('dataFoo') | ||
``` | ||
|
||
👍 Examples of **correct** code for this rule: | ||
|
||
// good | ||
```js | ||
el.getAttribute('autocomplete') | ||
``` | ||
|
||
```js | ||
el.getAttribute('data-foo') | ||
``` | ||
|
||
## Version | ||
|
||
4.3.2 |
Oops, something went wrong.