(&quot;span&quot;, state.url)
        ])
    }
}

m.mount(document.body, MyComponent)
</code></pre>
<p>In the example above, if the user clicks on the text within the link, <code>e.target</code> will point to the <code>&lt;span&gt;</code>, not the <code>&lt;a&gt;</code>.</p>
<p>While this behavior works as per its specs, it&#39;s not very intuitive or useful most of the time. Therefore, <code>m.withAttr</code> uses the value of <code>e.currentTarget</code> which does point to the <code>&lt;a&gt;</code>, as 