WICG / inert

Polyfill for the inert attribute and property.
Other
924 stars 81 forks source link

Is inert string or boolean? #150

Closed goatandsheep closed 4 years ago

goatandsheep commented 4 years ago

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?

saschanaz commented 4 years ago

HTML attributes (<div inert="true">) are all string, while IDL attribute (div.inert = true) can be boolean. Thus, it's both.

alice commented 4 years ago

Looks like the MDN documentation is inaccurate - the spec PR specifies it as a boolean attribute.

goatandsheep commented 4 years ago

@saschanaz no not all HTML attributes are string. disabled isboolean

goatandsheep commented 4 years ago

@alice thank you! I have since fixed the MDN article