while I'm using html attributes, I saw boolean attributes and I have used it many times.
but when I went to mdn docs to boolean attributes I have read that Boolean attributes can only have one value, which is generally the same as the attribute name.
and also as we know boolean attributes can be written without a value. but while I do some experiments I saw weird behave
<input type="text" disabled />
this is an input elemnet which has boolean attribute without value and it works correctly.
<input type="text" disabled="disabled" />
this is an input elemnet which has boolean attribute that has value of the same name as their name and it also as expected it works correctly.
<input type="text" disabled="anything" />
here an input element with boolean attribute which has value of anything and it works correctly.
why boolean attribute that has anything as value works correctly?