attr should return an empty string, not undefined per DOM spec.
|Reported by:||rpflorence@…||Owned by:|
Incorrect 1.6 behavior: http://jsfiddle.net/rpflorence/PzRya/
Correct 1.5 behavior: http://jsfiddle.net/rpflorence/PzRya/1/
Returning an empty string is
- still falsey, so you can still if (attr),
- follows the spec, and
- is the previous behavior.
Change History (3)
comment:1 follow-up: ↓ 2 Changed 5 years ago by timmywil
- Component changed from unfiled to attributes
- Priority changed from undecided to low
- Resolution set to invalid
- Status changed from new to closed