-
Notifications
You must be signed in to change notification settings - Fork 20.6k
When no attribute exists return null instead of undefined #2129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…with "getAttribute" behavior
Signed the CLA |
We should be discussing #2118 at the next meeting, hopefully reaching a consensus on whether or not to accept it. In the meantime, this PR will need unit tests, and I also observe that |
The reason I kept |
It's not an issue. |
@winhowes Sorry for the stringency, but the CLA name and email must match the name and email in the commit. Could you sign again as "Winston" winstonhowes@gmail.com? |
The CLA should be signed with a full name. Instead of signing the CLA with just the first name, the OP should modify the commit author so that the full name is used. We can do it in this case manually, but please @winhowes change your Git settings for the sake of the future. |
Ah, wasn't sure about that rule. Ok, in that case, I'll merge with the full name. |
git settings changed, thanks for letting me know |
From issue #2118 returning
null
for non-existant attribute instead ofundefined
keeps in line with browser behavior forgetAttribute()
.