Tests: Written ones responsible for readonly attribute.
Attribute readonly is handled in the same way as disabled.
Refactoring: simplified multiconditional statement.
Small refactoring.
Changelog entry.
Merge branch 't/12036' into major