0

Can anyone please explain to me the rational as to why in the W3C HTML 4.01 specification the HTML form input attribute "readonly" is only supported for input and textarea elements?

Why would it be wrong for a radio button to be readonly?

Tristan
  • 425
  • 4
  • 8
  • It's similar, @mcv asked at the end of his question "Incidentally, does anyone know why readonly doesn't work in radio buttons, while it does work in other input tags? Is this one of those incomprehensible omissions in the HTML specs?" but this part of his questions was IMO never satisfactorily answered. – Tristan Apr 17 '13 at 15:26
  • The HTML5 spec explains it: "The difference between disabled and readonly is that read-only controls are still focusable, so the user can still select the text and interact with it, whereas disabled controls are entirely non-interactive. (For this reason, only text controls can be made read-only: it wouldn't make sense for checkboxes or buttons, for instances." – Alohci May 03 '13 at 00:08
  • related http://stackoverflow.com/questions/155291/can-html-checkboxes-be-set-to-readonly – Adriano Jul 17 '14 at 08:25

0 Answers0