Closed Bug 740375 Opened 12 years ago Closed 12 years ago

get rid nsIAccessible innerHTML method

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: surkov, Assigned: capella)

References

Details

(Keywords: addon-compat, dev-doc-needed, Whiteboard: [good first bug][mentor=eitan@monotonous.org][lang=c++])

Attachments

(1 file)

1) remove innerHTML method from nsIAccessible interface (http://mxr.mozilla.org/mozilla-central/source/accessible/public/nsIAccessible.idl?force=1#111)
2) bump uuid of nsIAccessible interface
3) remove GetInnerHTML implementation from nsAccessible and nsApplicationAccessible (see accessible/src/base folder)
4) move the logic of nsAccessible::GetInnerHTML to nsAccessNodeWrap::get_innerHTML (see accessible/src/msaa) where it's used
(In reply to alexander :surkov from comment #0)
> 1) remove innerHTML method from nsIAccessible interface
> (http://mxr.mozilla.org/mozilla-central/source/accessible/public/
> nsIAccessible.idl?force=1#111)

any particular reason you want to remove this method?  it doesn't completely make sense or really have a clear purpose,but it doesn't seem its really hurting any one either.

> 4) move the logic of nsAccessible::GetInnerHTML to
> nsAccessNodeWrap::get_innerHTML (see accessible/src/msaa) where it's used

it looks like it already uses its own logic which is the same.  Although perhaps it should use something other than qi and nsIDOMHTMLElement
(In reply to Trevor Saunders (:tbsaunde) from comment #1)
> (In reply to alexander :surkov from comment #0)
> > 1) remove innerHTML method from nsIAccessible interface
> > (http://mxr.mozilla.org/mozilla-central/source/accessible/public/
> > nsIAccessible.idl?force=1#111)
> 
> any particular reason you want to remove this method?  it doesn't completely
> make sense or really have a clear purpose,but it doesn't seem its really
> hurting any one either.

this method is just a shortcut around HTML element innerHTML, doesn't make sense to dupe it on accessibility layer

> > 4) move the logic of nsAccessible::GetInnerHTML to
> > nsAccessNodeWrap::get_innerHTML (see accessible/src/msaa) where it's used
> 
> it looks like it already uses its own logic which is the same.  Although
> perhaps it should use something other than qi and nsIDOMHTMLElement

you're right, I missed that (it was late night for me :) ) So no 4) item.
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Attached patch Patch (v1)Splinter Review
Looks fairly simple, built out ok, passed all mochitest-a11y tests ...
Attachment #610983 - Flags: feedback?(trev.saunders)
Attachment #610983 - Flags: feedback?(trev.saunders) → review+
Target Milestone: --- → mozilla14
https://hg.mozilla.org/mozilla-central/rev/57bd8957e1b4
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Keywords: addon-compat
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: