setAttribute("foo", null)

https://developer.mozilla.org/ja/docs/Site_Compatibility_for_Firefox_20

by efcl

HTML

<script src="http://cdn.busterjs.org/releases/latest/buster-test.js"></script>
<link rel="stylesheet" href="http://cdn.busterjs.org/releases/latest/buster-test.css">

JavaScript

buster.testCase("setAttribute", {
    setUp : function(){
        this.targetDOM = document.createElement("div");
        document.body.appendChild(this.targetDOM);
    },
    tearDown : function(){
        document.body.removeChild(this.targetDOM)
        this.targetDOM = null;
    },
    "set null as string" : function(){
        this.targetDOM.setAttribute("foo" , null);
        var value = this.targetDOM.getAttribute("foo");
        assert.same(value, "null");
    }
});