vaScript API and the DOM API (<code>setAttribute</code>) to resolve attributes. This means you can use both syntaxes to refer to attributes.</p>
<p>For example, in the JavaScript API, the <code>readonly</code> attribute is called <code>element.readOnly</code> (notice the uppercase). In Mithril, all of the following are supported:</p>
<pre><code class=language-javascript>m(&quot;input&quot;, {readonly: true}) // lowercase
m(&quot;input&quot;, {readOnly: true}) // uppercase
m(&quot;input[readonly]&quot;)
m(&q