(function() {
        document.querySelector("#test").innerHTML = '<label id="label">hi \
            <input type="checkbox" disabled id="disabledcb"> \
            <input type="checkbox" id="checkbox"></label>';

        var label = document.getElementById('label'),
            disabledcb = document.getElementById('disabledcb'),
            checkbox = document.getElementById('checkbox');

        label.click();
        assert_false(disabledcb.checked, "checkbox should not be checked")
        assert_false(