Skip to content

Commit

Permalink
Say that if it doesn't fit as an attribute, it should be a method.
Browse files Browse the repository at this point in the history
Fixes w3ctag#139.
  • Loading branch information
dbaron committed Mar 30, 2020
1 parent b66b7f4 commit 27a4429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ much like a data property as possible. Specific guidance in this regard includes
true. (This will not always be the case, e.g. if a normalization or type conversion step is
necessary, but should be held as a goal for normal code paths.)

If you were thinking about using an attribute,
but it doesn't behave this way,
you should probably use a method instead.

<h3 id="live-vs-static">Consider whether objects should be live or static</h3>

Objects returned from functions, attribute getters, etc.,
Expand Down

0 comments on commit 27a4429

Please sign in to comment.