se(checkbox1.checked, "checkbox should not be checked");
        assert_false(checkbox2.checked, "checkbox should not be checked");
    }, "Label 'for' logic should take precedence over nesting logic");

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

        var label = document.getElementById('label'),
            checkbox1 = d