<!doctype html>
<meta charset="utf-8">
<title>Click action on label</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<div id="test"></div>

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

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