Bug 59140 - WebKit is erroneously modifying the DOM; adding 'aria-selected' to tables
Summary: WebKit is erroneously modifying the DOM; adding 'aria-selected' to tables
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-04-21 14:24 PDT by chris fleizach
Modified: 2011-04-21 22:02 PDT (History)
2 users (show)

See Also:


Attachments
patch (6.60 KB, patch)
2011-04-21 17:34 PDT, chris fleizach
bdakin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2011-04-21 14:24:54 PDT
WebKit is calling setAttribute('aria-selected', 'true') on each row. Notice the second table turns completely purple as the VO cursor goes through each row. Even if WebKit were cleaning up after itself, it should not be modifying the DOM at all.
Comment 1 chris fleizach 2011-04-21 14:25:10 PDT
rdar://9275872
Comment 2 chris fleizach 2011-04-21 17:34:02 PDT
Created attachment 90641 [details]
patch
Comment 3 WebKit Review Bot 2011-04-21 17:36:21 PDT
Attachment 90641 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/acce..." exit_code: 1

Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1639:  Should only a single space after a punctuation in a comment.  [whitespace/comments] [5]
Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2240:  Should only a single space after a punctuation in a comment.  [whitespace/comments] [5]
Total errors found: 2 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Beth Dakin 2011-04-21 17:56:22 PDT
Comment on attachment 90641 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=90641&action=review

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1641
>  

Is there any reason to leave this empty function around? It seems like we should just get rid of it.

> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2242
>  

Same here.
Comment 5 chris fleizach 2011-04-21 17:57:49 PDT
(In reply to comment #4)
> (From update of attachment 90641 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=90641&action=review
> 
> > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1641
> >  
> 
> Is there any reason to leave this empty function around? It seems like we should just get rid of it.
> 
> > Source/WebCore/accessibility/AccessibilityRenderObject.cpp:2242
> >  
> 
> Same here.

I think eventually we want to put something there, but agreed, for now we should just remove
Comment 6 Beth Dakin 2011-04-21 18:26:05 PDT
Comment on attachment 90641 [details]
patch

r=me, but I would prefer for those functions to be removed for now.
Comment 7 chris fleizach 2011-04-21 18:28:35 PDT
(In reply to comment #6)
> (From update of attachment 90641 [details])
> r=me, but I would prefer for those functions to be removed for now.

thanks. will remove
Comment 8 chris fleizach 2011-04-21 22:02:01 PDT
http://trac.webkit.org/changeset/84600