read-write and read-only
by int32_t
HTML
<input />
<input readonly value="read-only" />
<input disabled value="disabled" />
<hr />
<textarea></textarea>
<textarea readonly>Read-only</textarea>
<textarea disabled>Disabled</textarea>
<hr />
<div>Staic div</div>
<div contenteditable="true">Editable div <span>editable child</span>.</div>
CSS
:read-write {
background-color: #fcc;
}
:-moz-read-write {
background-color: #fcc;
}
:read-only {
background-color: #ccf;
}
:-moz-read-only {
background-color: #ccf;
}