WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
120122
Treat elements with editable text roles as text controls
https://bugs.webkit.org/show_bug.cgi?id=120122
Summary
Treat elements with editable text roles as text controls
Roger Fong
Reported
2013-08-21 10:44:36 PDT
Assign elements with static text roles to ROLE_SYSTEM_TEXT. Static text should still be accessible by AccessibleText which requires ROLE_SYSTEM_TEXT. Accordingly, elements with static text roles should be treated as textControls.
Attachments
patch
(1.92 KB, patch)
2013-08-22 18:03 PDT
,
Roger Fong
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion
(543.97 KB, application/zip)
2013-08-22 19:17 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2
(549.96 KB, application/zip)
2013-08-22 20:48 PDT
,
Build Bot
no flags
Details
patch
(1.07 KB, patch)
2013-08-23 11:06 PDT
,
Roger Fong
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-08-21 10:45:15 PDT
<
rdar://problem/14797439
>
Roger Fong
Comment 2
2013-08-22 18:03:52 PDT
Created
attachment 209416
[details]
patch
Roger Fong
Comment 3
2013-08-22 18:11:59 PDT
I'm not sure I've covered the full extent of what needs to be considered a text role but I think I've hit the big ones.
Build Bot
Comment 4
2013-08-22 19:17:42 PDT
Comment on
attachment 209416
[details]
patch
Attachment 209416
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/1526497
New failing tests: platform/mac/accessibility/internal-link-anchors.html platform/mac/accessibility/bounds-for-range.html platform/mac/accessibility/search-predicate.html
Build Bot
Comment 5
2013-08-22 19:17:44 PDT
Created
attachment 209423
[details]
Archive of layout-test-results from webkit-ews-05 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-05 Port: mac-mountainlion Platform: Mac OS X 10.8.4
Build Bot
Comment 6
2013-08-22 20:48:30 PDT
Comment on
attachment 209416
[details]
patch
Attachment 209416
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/1546149
New failing tests: platform/mac/accessibility/internal-link-anchors.html platform/mac/accessibility/bounds-for-range.html
Build Bot
Comment 7
2013-08-22 20:48:33 PDT
Created
attachment 209428
[details]
Archive of layout-test-results from webkit-ews-10 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-10 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.4
chris fleizach
Comment 8
2013-08-22 22:52:59 PDT
Comment on
attachment 209416
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=209416&action=review
> Source/WebCore/accessibility/AccessibilityObject.cpp:286 > + case StaticTextRole:
static text should not be marked as text control. Text control is only for things that allow text input
> Source/WebCore/accessibility/AccessibilityObject.cpp:287 > + case EditableTextRole:
what's the difference between EditableTextRole and TextField or TextArea? can one of those roles be used instead of EditableTextRole?
Roger Fong
Comment 9
2013-08-23 10:48:36 PDT
*(In reply to
comment #8
)
> (From update of
attachment 209416
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=209416&action=review
> > > Source/WebCore/accessibility/AccessibilityObject.cpp:286 > > + case StaticTextRole: > > static text should not be marked as text control. Text control is only for things that allow text input
Ah, I did not see the isStaticText() method on accessibility object. I will use that in conjunction with isTextControl() when deciding whether or not to create my accessibility object.
> > > Source/WebCore/accessibility/AccessibilityObject.cpp:287 > > + case EditableTextRole: > > what's the difference between EditableTextRole and TextField or TextArea? can one of those roles be used instead of EditableTextRole?
You can have just a <div contenteditable=true>content here </div>
https://bugs.webkit.org/show_bug.cgi?id=120191
addresses this. (If it's a text node and content is editable it uses the EditableTextRole.
Roger Fong
Comment 10
2013-08-23 10:57:41 PDT
I might need to split this up into 2, 1 line patches... The two parts are actually not really related...
Roger Fong
Comment 11
2013-08-23 11:06:42 PDT
Created
attachment 209475
[details]
patch Will likely cause some tests to need rebaselining. I'll let EWS figure out which ones.
Roger Fong
Comment 12
2013-08-23 11:48:08 PDT
No longer necessary since I'm fixing
https://bugs.webkit.org/show_bug.cgi?id=120191
in a different way.
Brent Fulgham
Comment 13
2013-10-30 10:23:22 PDT
Comment on
attachment 209475
[details]
patch Clear flag to remove from queue.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug