Bug 1520869 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The behavior is related to "checkbox.disabled = true".
After moving "checkbox.disabled = true" into change listener, we can catch change event.


    <script>
      document.getElementById("checkbox").addEventListener("click", (ev) => {
        // ev.target.disabled = true;
      });

      checkbox.addEventListener("change", () => {
        document.getElementById("label").textContent = "changed";
        checkbox.disabled = true;
      });
    </script>
I am trying to find if there is SPEC describing about this behavior.

Back to Bug 1520869 Comment 3