Closed Bug 397664 Opened 18 years ago Closed 18 years ago

Don't process xhtml2:role

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

References

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

According to http://simon.html5.org/specs/aria-proposal we should not process xhtml2:role attribute. We should allow xhtml:role on SVG or XUL (non-HTML). This means we need to change all of the XUL files which use xhtml2:role, to just use xhtml:role
I think we should wait for the final community word on the spec before we do this. That part might be controversial.
Attachment #282751 - Attachment is patch: true
Attachment #282751 - Attachment mime type: application/octet-stream → text/plain
Attachment #282751 - Flags: review?(mano) → review?(gavin.sharp)
Comment on attachment 282751 [details] [diff] [review] 1) Remove xhtml2:role, 2) Change XUL Files to use xhtml:role, 3) Remove role when it was just used to set an aaa property that is now universal & requires no role, 4) Marco's s/groupbox/group fix r=mano
Attachment #282751 - Flags: review?(gavin.sharp) → review+
Attachment #282751 - Flags: approval1.9?
Blocks: 397532
Attachment #282751 - Flags: approval1.9? → approval1.9+
Comment on attachment 282751 [details] [diff] [review] 1) Remove xhtml2:role, 2) Change XUL Files to use xhtml:role, 3) Remove role when it was just used to set an aaa property that is now universal & requires no role, 4) Marco's s/groupbox/group fix Surkov, for nsAccessNode.cpp change Neil, for everything else
Attachment #282751 - Flags: superreview?(neil)
Attachment #282751 - Flags: review?(surkov.alexander)
Comment on attachment 282751 [details] [diff] [review] 1) Remove xhtml2:role, 2) Change XUL Files to use xhtml:role, 3) Remove role when it was just used to set an aaa property that is now universal & requires no role, 4) Marco's s/groupbox/group fix Phil, for mail
Attachment #282751 - Flags: review?(philringnalda)
Comment on attachment 282751 [details] [diff] [review] 1) Remove xhtml2:role, 2) Change XUL Files to use xhtml:role, 3) Remove role when it was just used to set an aaa property that is now universal & requires no role, 4) Marco's s/groupbox/group fix I'd prefer if you used xhtml (or even html as used in datetimepicker.xml for some reason) instead of xh which is virtually meaningless.
Attachment #282751 - Flags: superreview?(neil) → superreview+
Comment on attachment 282751 [details] [diff] [review] 1) Remove xhtml2:role, 2) Change XUL Files to use xhtml:role, 3) Remove role when it was just used to set an aaa property that is now universal & requires no role, 4) Marco's s/groupbox/group fix >Index: accessible/src/base/nsAccessNode.cpp > // XXX We still support XHTML2 for now because of XUL content, but will migrate to XHTML after FF3 >- else if (!aContent->GetAttr(kNameSpaceID_XHTML, nsAccessibilityAtoms::role, aRole) && >- !aContent->GetAttr(kNameSpaceID_XHTML2_Unofficial, nsAccessibilityAtoms::role, aRole)) { >+ else if (!aContent->GetAttr(kNameSpaceID_XHTML, nsAccessibilityAtoms::role, aRole)) { > return PR_FALSE; Unless I'm reviewing for Moz2, which seems unlikely, that comment needs to be fixed. >Index: mail/components/preferences/advanced.xul > <checkbox id="enableAppUpdate" > label="&enableAppUpdate.label;" > accesskey="&enableAppUpdate.accesskey;" > preference="app.update.enabled" >- xhtml2:role="wairole:checkbox" aaa:describedby="updateInfo"/> >+ aaa:describedby="updateInfo"/> > <checkbox id="enableAddonUpdate" > label="&enableAddonsUpdate.label;" > accesskey="&enableAddonsUpdate.accesskey;" > preference="extensions.update.enabled" >- xhtml2:role="wairole:checkbox" aaa:describedby="updateInfo"/> >+ aaa:describedby="updateInfo"/> Those two lines came from bug 306897, which was porting Firefox's bug 302359, but you didn't actually land those changes for Fx. Does it need that aaa:describedby, or does Tb not need it? (Or, is there some subtle difference I'm not seeing?)
Phil, nice catch. In fact that describedby usage was wrong. They don't even point to an element -- that ID doesn't exist in the file. It should be like what Firefox has now, which is to have the vbox look like a groupbox via xhtml:role="group" and a the label for the checkbox group needs to point to that.
Attachment #282751 - Attachment is obsolete: true
Attachment #282872 - Flags: review?
Attachment #282751 - Flags: review?(surkov.alexander)
Attachment #282751 - Flags: review?(philringnalda)
Attachment #282872 - Flags: review?(surkov.alexander)
Comment on attachment 282872 [details] [diff] [review] Fix Neil & Phil's comments you should remove xhtml2 namespace usage from attribute changed handler, with that r=me
Attachment #282872 - Flags: review?(surkov.alexander) → review+
Comment on attachment 282872 [details] [diff] [review] Fix Neil & Phil's comments r=philringnalda on the mail bits, thanks for fixing us up!
Attachment #282872 - Flags: review? → review+
Attachment #282872 - Flags: approval1.9?
Blocks: 398170
Attachment #282872 - Flags: approval1.9? → approval1.9+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: