Making dirname attribute optional.
Fixing list field for readonly attribute.
Fixing radio field for checked attribute.