Fixed #1039 and #1733 by going through the core API and making them text node and comment node safe.
This commit is contained in:
parent
12ef255ffd
commit
ffbedf0262
8 changed files with 188 additions and 64 deletions
|
@ -1,7 +1,7 @@
|
|||
module("event");
|
||||
|
||||
test("bind()", function() {
|
||||
expect(15);
|
||||
expect(16);
|
||||
|
||||
var handler = function(event) {
|
||||
ok( event.data, "bind() with data, check passed data exists" );
|
||||
|
@ -67,6 +67,11 @@ test("bind()", function() {
|
|||
|
||||
// Trigger the remaining fn (1)
|
||||
$("#firstp").trigger("click");
|
||||
|
||||
// using contents will get comments regular, text, and comment nodes
|
||||
$("#nonnodes").contents().bind("tester", function () {
|
||||
equals(this.nodeType, 1, "Check node,textnode,comment bind just does real nodes" );
|
||||
}).trigger("tester");
|
||||
});
|
||||
|
||||
test("click()", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue