s whose value do not change), and pass an attributes object for dynamic attribute values.</p>
<pre><code class=language-javascript>var currentURL = &quot;/&quot;

m(&quot;a.link[href=/]&quot;, {
    class: currentURL === &quot;/&quot; ? &quot;selected&quot; : &quot;&quot;
}, &quot;Home&quot;)

// renders to this HTML:
// &lt;a href=&quot;/&quot; class=&quot;link selected&quot;&gt;Home&lt;/a&gt;</code></pre>
<h3 id=attributes-passed-as-the-second-argument><a href=#attributes-passed-as-the-second-argument>Att