invalid htmlFor

by dandclark_msft

HTML

<fancy-checkbox id="fancy"></fancy-checkbox>
<label for="fancy-invalid">fancy checkbox with invalid id</label>
<script>
  console.log(`${document.querySelector('label').htmlFor}`); // logs 'fancy-invalid'
</script>