><a href="#dom-attributes">DOM attributes</a></h3>
<p>Mithril uses both the Javascript 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="lang-javascript">m(&quot;input&quot;, {readonly: true}) // lowercase
m(&quot;inp