-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX beta] Remove attributes that are set to null
or undefined
.
#10709
Conversation
This is somewhat related to the conversation we had at #10687 (comment). @mixonic - r? |
:-/ @dgeb So Can we add And include both At a later time, this should probably move to the dom helper. |
@mixonic I might be misunderstanding you, but if I change:
To:
Then the Note that Please let me know if I'm misunderstanding your suggestion. |
@dgeb it won't make a request for the asset with I'd prefer to not lean on |
@mixonic - gotcha - will revise this PR. |
This resolves a problem in the legacy `bind-attr` implementation in which `src` attributes would be set to `null` instead of being removed or cleared. This led to spurious fetches for invalid assets. [Fixes emberjs#10675]
LGTM |
[BUGFIX beta] Remove attributes that are set to `null` or `undefined`.
Pulling into beta (need commit prefix next time though).... |
This resolves a problem in the legacy
bind-attr
implementation inwhich attributes would be set to
null
instead of being removed.This led to spurious fetches for
src
attributes ofimg
elementsand may have had other side effects.
[Fixes #10675]