Skip to content
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] htmlsafe warning not thrown for none values #12686

Merged
merged 1 commit into from
Dec 6, 2015

Conversation

bekzod
Copy link
Contributor

@bekzod bekzod commented Dec 5, 2015

as discussed here #12681

@rwjblue
Copy link
Member

rwjblue commented Dec 5, 2015

Looks good, can you:

  • add a separate test for 'undefined' value also?
  • prefix commit and PR title with '[BUGFIX beta]'

@bekzod bekzod changed the title htmlsafe warning not thrown for none values htmlsafe warning not thrown for none values [BUGFIX beta] Dec 5, 2015
@bekzod bekzod changed the title htmlsafe warning not thrown for none values [BUGFIX beta] [BUGFIX beta] htmlsafe warning not thrown for none values Dec 5, 2015
@bekzod
Copy link
Contributor Author

bekzod commented Dec 5, 2015

done :)

QUnit.test('null value do not generate htmlsafe warning', function() {
view = EmberView.create({
userValue: null,
template: compile('<div style={{userValue}}></div>')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After re-reviewing, I believe that this (and the other test) need to be tweaked to either use {{view.userValue}} (as it stands this one that is testing undefined also because there is no context of this view).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for pointing it out, I have corrected that

@rwjblue
Copy link
Member

rwjblue commented Dec 6, 2015

Awesome, thank you! Sorry for not spotting that last issue in the first review pass.

rwjblue added a commit that referenced this pull request Dec 6, 2015
[BUGFIX beta] htmlsafe warning not thrown for none values
@rwjblue rwjblue merged commit 3561214 into emberjs:master Dec 6, 2015
@bekzod bekzod deleted the html-safe-none branch January 8, 2016 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants