RESOLVED INVALID 120191
Editable text nodes should be have EditableTextRole
https://bugs.webkit.org/show_bug.cgi?id=120191
Summary Editable text nodes should be have EditableTextRole
Roger Fong
Reported 2013-08-22 18:14:22 PDT
previously they were considered static text.
Attachments
patch (1.12 KB, patch)
2013-08-23 11:17 PDT, Roger Fong
no flags
Radar WebKit Bug Importer
Comment 1 2013-08-22 18:14:47 PDT
Roger Fong
Comment 2 2013-08-23 10:49:48 PDT
I'm going to add + if (node()->isTextNode() && node()->isContentEditable()) + return EditableTextRole; to determineAccessibilityRole in AccessibilityNodeObject.cpp
chris fleizach
Comment 3 2013-08-23 11:17:06 PDT
On the Mac, I believe we mark these are what they normally are (DivRole, or GroupRole) but we mark that the value is writable. VO has some good to handle that then. I think this change is OK, but it will cause some failures in Mac and maybe others because this role will need to be handled the right way to return the right platform specific role
Roger Fong
Comment 4 2013-08-23 11:17:46 PDT
chris fleizach
Comment 5 2013-08-23 11:27:30 PDT
Comment on attachment 209477 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=209477&action=review > accessibility/AccessibilityNodeObject.cpp:281 > + return EditableTextRole; this should probably go inside the next line so we have if (node()->isTextNode()) { if (node()->isContent()) return Editable return Static }
Roger Fong
Comment 6 2013-08-23 11:39:49 PDT
(In reply to comment #3) > On the Mac, I believe we mark these are what they normally are (DivRole, or GroupRole) but we mark that the value is writable. VO has some good to handle that then. > > I think this change is OK, but it will cause some failures in Mac and maybe others because this role will need to be handled the right way to return the right platform specific role How about I add a isTextNode() && isContentEditable() check to AccessibleBase (windows specific) where I decide to create the AccessibleText instance. That way I won't have to modify this platform agnostic stuff. That sound okay?
chris fleizach
Comment 7 2013-08-23 11:41:06 PDT
(In reply to comment #6) > (In reply to comment #3) > > On the Mac, I believe we mark these are what they normally are (DivRole, or GroupRole) but we mark that the value is writable. VO has some good to handle that then. > > > > I think this change is OK, but it will cause some failures in Mac and maybe others because this role will need to be handled the right way to return the right platform specific role > > How about I add a isTextNode() && isContentEditable() check to AccessibleBase (windows specific) where I decide to create the AccessibleText instance. > > That way I won't have to modify this platform agnostic stuff. > That sound okay? Sounds ok
Roger Fong
Comment 8 2013-08-23 11:42:17 PDT
Will move this check into Windows specific code.
Brent Fulgham
Comment 9 2013-10-30 10:24:16 PDT
Comment on attachment 209477 [details] patch Clearing flag to remove from review queue.
Note You need to log in before you can comment on or make changes to this bug.