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

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

        var submitClicked = false;
        submit.onclick = function() { submitClicked = true };

        label.click();
        assert_true(sub