Closed goatandsheep closed 4 years ago
HTML attributes (<div inert="true">
) are all string, while IDL attribute (div.inert = true
) can be boolean. Thus, it's both.
Looks like the MDN documentation is inaccurate - the spec PR specifies it as a boolean attribute.
@saschanaz no not all HTML attributes are string. disabled
isboolean
@alice thank you! I have since fixed the MDN article
I noticed that this library is checking for existence of inert, i.e. boolean or
true
/false
, whereas this documentation on MDN uses string, i.e."true"
/"false"
. Which is it?