diff --git a/docs/mithril.md b/docs/mithril.md index 2241831c..05496f79 100644 --- a/docs/mithril.md +++ b/docs/mithril.md @@ -137,6 +137,9 @@ m("button", {onclick: alert}); //yields , which alerts its even //note this uses the Javascript syntax (uppercase "O") for `readonly` //in order to set the boolean javascript property instead of the HTML attribute m("input", {readOnly: true}); //yields + +//using the HTML attribute name will call `setAttribute`, which may not be what you want +m("input", {readonly: false}); //yields , which is still readonly ``` ---