Closed Bug 544600 Opened 14 years ago Closed 14 years ago

Accessibility should check for the bogus br node used by the editor directly

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a2

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (v1) (obsolete) — Splinter Review
Accessibility currently relies on a hack to detect the bogus br node which the editor uses to represent empty values.  This is a hack, and it makes finding all of the places where this type of br node is being manipulated harder.

This br node has the nsGkAtoms::mozeditorbogusnode attribute set to true, so we can query for that attribute value directly.
Attachment #425574 - Flags: review?(bolterbugz)
Attached patch Patch (v1.1)Splinter Review
Ah, forgot to refresh the patch...
Attachment #425574 - Attachment is obsolete: true
Attachment #425575 - Flags: review?(bolterbugz)
Attachment #425574 - Flags: review?(bolterbugz)
Comment on attachment 425575 [details] [diff] [review]
Patch (v1.1)

r=me. This makes it clearer what (hackiness) is going on. Thanks. It might be a little less performant (+AttrValueIs), but I'd take it.
Attachment #425575 - Flags: review?(bolterbugz) → review+
http://hg.mozilla.org/mozilla-central/rev/708026b98bc6
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: