Different browser may treat this attribute differently. According to the MSDN documentation (for Internet Explorer):
To select an item in HTML, it is not
necessary to set the value of the
SELECTED attribute to true. The mere
presence of the SELECTED attribute set
its value to true.
In firefox and Safari this does work:
<option selected='false' />
From what I can tell by looking at the official WC3 standard for HTML4, the supported case is only:
<option selected='selected' />
You will either need to selectively emit the attribute, or use javascript to control which item is initially selected.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…