What is the difference between:
<input name="TextBox1" type="text" id="TextBox1" readonly="true" />
and:
<input name="TextBox1" type="text" id="TextBox1" readonly="readonly" />
When i set readonly
to true
it works somewhat different from readonly='readonly'
. W3C standard says readonly
should be 'readonly'
& not 'true'
. Why most of the browsers allow readonly='true'
which has somewhat different functionality than readonly='readonly'
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…