FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=12065&edit=1

ID: 12065
Updated by: borz_off@cs.msu.su
Reported By: n dot d dot freear at open dot ac dot uk
Summary: Disabled (frozen) elements not accessible
-Status: Open
+Status: Feedback
Type: Bug
Package: HTML_QuickForm2
Operating System: Irrelevant
Package Version: 0.1.0
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
We'll probably add a means to customize "frozen" HTML for checkboxes and
radios in QF2, however I'd like to clarify a few points first.

Freezing elements in QF[2] is primary useful for an additional
confirmation step, sending a filled form via email, this sort of thing.
Setting an element disabled is more easily achieved by simply doing
setAttribute('disabled')

So the first question is why Moodle is using freeze() in the first
place?

Also Moodle seems to still use old QuickForm, we'd like to know what
prevents migration to QF2?


Previous Comments:
------------------------------------------------------------------------

[2007-09-17 08:39:12] nfreear

Description:
------------
When a "frozen" (disabled) form element is displayed with QuickForm, it
is not displayed as expected with a disabled="disabled" attribute -
instead QuickForm tries to give a plain text equivalent. This is a
usability and accessibility problem:

1. It loses uniform appearance with the rest of the user interface, and
will confuse some users.
2. For non-visual users using screen reader software this text may not
be read and in any case will not make sense (More here,
http://docs.moodle.org/en/Development:Accessibility_notes#Forms).

Applies to, at least: Input, InputCheckbox, InputPassword, InputRadio

HTML 4, disabled attribute,
http://www.w3.org/TR/html4/interact/forms.html#adef-disabled

We use QuickForm in Moodle - for the moment we have fixed it at our
level, but really it needs fixing in the QuickForm2 base classes,
http://tracker.moodle.org/browse/MDL-8627

(Reported for HTML_QuickForm as Bug # 12063)

Expected result:
----------------
Checkbox example: <label for="y">label</label> <input type="checkbox"
disabled="disabled" id="y" />

Actual result:
--------------
Checkbox example: label [ ], or [x]

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 8, '12 at 11:30a
activeApr 8, '12 at 11:30a
posts1
users1
websitepear.php.net

1 user in discussion

Borz_off: 1 post

People

Translate

site design / logo © 2022 Grokbase