Merge pull request #13649 from DefinitelyTyped/jquery_null_attr

jquery: allow null argument to `attr`
This commit is contained in:
John Reilly
2016-12-31 06:50:40 +00:00
committed by GitHub
2 changed files with 160 additions and 159 deletions
+159 -159
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -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')