According to this MDN article, the checked
attribute of a checkbox only indicates whether a checkbox is ticked by default, and not its current state.
However, very basic testing reveals it does reflect the checkbox’s current state :
<input type="checkbox" id="test">
<button type="button" onclick="console.log(document.querySelector('#test').checked);">Test</button>
Is the MDN article wrong, or are browsers simply not conforming with the specification here ?