title: How to write a CSS Selector selecting elements NOT having a certain attribute?
body: <p>How to write a CSS Selector selecting elements NOT having a certain attribute?</p>
  
  <p>I have 2 <code>&lt;div&gt;</code> nodes as follows:</p>
  
  <ul>
  <li><p>First:</p>
  
  <pre><code>&lt;div class="weEq5" style="will-change; width;"&gt;
      &lt;button class="_35EW6"&gt;
  </code></pre></li>
  <li><p>Second:</p>
  
  <pre><code>&lt;div class="weEq5"&gt;
      &lt;button class="_35EW6"&gt;
  </code></pre></li>
  </ul>
  
  <p>I need to select the <code>&lt;div&gt;</code> (with the similar class) and each of them which have a similar <em>descending</em> <code>&lt;button&gt;</code> but without the <code>style</code> attribute.</p>
  
  <p><em>XPath</em> seems working fine as:</p>
  
  <pre><code>//div[@class and not (@style)]/button
  </code></pre>
  
  <p>I am looking for an equivalent <em>CssSelector</em>.</p>
  
  <p>Trials:</p>
  
  <pre><code>div[class :not(style)]&gt;button (doesn't works).
  </code></pre>
  
  <p>I have been through the following discussion but they seem to be discarding the <em>class</em> attribute as <code>:not([class])</code> as in:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/9110300/can-i-write-a-css-selector-selecting-elements-not-having-a-certain-class">Can I write a CSS selector selecting elements NOT having a certain class?</a></li>
  <li><a href="https://stackoverflow.com/questions/27741980/is-it-possible-to-define-in-css-not-to-apply-style-if-element-have-certain-class">Is it possible to define in CSS NOT to apply style if element have certain class? [duplicate]</a></li>
  </ul>
  
  <p>I was looking in similar lines ending with <code>:not(attribute)</code>.</p>