Skip to content

Firefox not detecting disabled input #9

@adhar1985

Description

@adhar1985

Firefox is not detecting new input elements if it has disabled attribute.
I have added the following test case in test.js and it failed in firefox.

it('should react to a disabled input', function() {
var callback = jasmine.createSpy('callback');
runs(function() {
insertionQ('input[type="checkbox"]').every(callback);
});
waits(200);
runs(function() {
var el = document.createElement('input');
el.type = 'checkbox';
el.disabled = true;
document.body.appendChild(el);
});
waits(200); //just to be sure
runs(function() {
expect(callback.calls.length).toEqual(1);
});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions