Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

don't allow checked='false' on inputs #354

Merged
merged 5 commits into from
Apr 8, 2014

Conversation

dguzzo
Copy link
Contributor

@dguzzo dguzzo commented Apr 7, 2014

edit: removed internal URL reference

kpdecker added a commit that referenced this pull request Apr 8, 2014
…ed-attr-4225

don't allow checked='false' on inputs
@kpdecker kpdecker merged commit 4c81682 into master Apr 8, 2014
@kpdecker kpdecker deleted the form-input-mispopulate-checked-attr-4225 branch April 8, 2014 02:57
@kpdecker
Copy link
Contributor

kpdecker commented Apr 8, 2014

Released in 3.0.0-alpha.3


function expectNotChecked() {
// don't be the string 'false', instead be boolean false, since the attr is non-existent
expect(view.$('input[name="cat"]').eq(0).attr('checked')).to.not.equal('false').and.to.be['false'];
Copy link
Contributor

Choose a reason for hiding this comment

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

We're using expect.js now. You need .to.be(false). I don't know if there is an and directive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, good to know; always felt silly doing ['false']

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants