title: How to check if an attribute is a Boolean attribute?
body: <p>Is there any way to check if some HTML attribute are Boolean? for example:</p>
  
  <pre><code>&lt;input type="text" name="input" disabled=""/&gt;
  </code></pre>
  
  <p>Here the <code>disabled</code> attribute is Boolean, I have some code and I need check before setting value whether that attribute is Boolean or not.</p>
  
  <p>Why I need this?</p>
  
  <p>As mentioned <a href="https://www.w3.org/TR/html5/infrastructure.html#boolean-attribute" rel="nofollow">here</a> we can have either <code>""</code> or property name itself as the valid value not <code>true</code> or <code>false</code>.</p>