As you can see, at least on Chrome, the contentEditable
attribute seems to be ignored on textarea
.
Question A: Is that how it's supposed to work?
Question C: Does using contentEditable
on a textarea
have any consequences other than proving you're an idiot?
Question D: Why is there no question B? Just kidding, I had a clown for breakfast today. :D
textarea { /* not relevant for the question, only for the demo */
display: block;
width: 500px;
}
<textarea contentEditable="true">contentEditable="true"</textarea>
<textarea contentEditable="false">contentEditable="false"</textarea>
<textarea contentEditable="true" readonly>contentEditable="true" readonly</textarea>
<textarea contentEditable="true" disabled>contentEditable="true" disabled</textarea>