mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #13649 from DefinitelyTyped/jquery_null_attr
jquery: allow null argument to `attr`
This commit is contained in:
Vendored
+159
-159
File diff suppressed because it is too large
Load Diff
@@ -575,6 +575,7 @@ function test_appendTo() {
|
||||
|
||||
function test_attr() {
|
||||
var title = $("em").attr("title");
|
||||
$("em").attr("title", null); // Delete an attribute.
|
||||
$("div").text(title);
|
||||
$('#greatphoto').attr('alt', 'Beijing Brush Seller');
|
||||
$('#greatphoto')
|
||||
|
||||
Reference in New Issue
Block a user