WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
135116
AX: HTML5 landmark (and related) elements should not be ignored.
https://bugs.webkit.org/show_bug.cgi?id=135116
Summary
AX: HTML5 landmark (and related) elements should not be ignored.
Takeshi Kurosawa
Reported
2014-07-21 06:22:24 PDT
Created
attachment 235216
[details]
Testcase WebKit ignores and doesn't expose following HTML5 landmark (and related) elements when they have block render object children: - header (LandmarkBannerRole) - aside (LandmarkComplementaryRole) - footer (FooterRole) - address (LandmarkContentInfoRole) - main (LandmarkMainRole) - nav (LandmarkNavigationRole) - article (DocumentArticleRole) - section (DocumentRegionRole) - dt (DescriptionListTermRole) - dd (DescriptionListDetailRole) We should not ignore these elements and should expose them. # Although dt and dd are not related to landmark, we should expose.
Attachments
Testcase
(494 bytes, text/html)
2014-07-21 06:22 PDT
,
Takeshi Kurosawa
no flags
Details
Patch
(9.38 KB, patch)
2014-07-21 07:25 PDT
,
Takeshi Kurosawa
no flags
Details
Formatted Diff
Diff
Patch (indetation fix)
(9.34 KB, patch)
2014-07-21 14:29 PDT
,
Takeshi Kurosawa
jcraig
: review-
Details
Formatted Diff
Diff
Patch (drop footer element)
(8.66 KB, patch)
2014-07-22 05:49 PDT
,
Takeshi Kurosawa
no flags
Details
Formatted Diff
Diff
Patch (drop footer element)
(8.54 KB, patch)
2014-07-22 06:11 PDT
,
Takeshi Kurosawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2014-07-21 06:22:56 PDT
<
rdar://problem/17746405
>
Takeshi Kurosawa
Comment 2
2014-07-21 07:25:29 PDT
Created
attachment 235219
[details]
Patch Patch.
WebKit Commit Bot
Comment 3
2014-07-21 07:27:46 PDT
Attachment 235219
[details]
did not pass style-queue: ERROR: Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1257: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
chris fleizach
Comment 4
2014-07-21 09:13:06 PDT
Comment on
attachment 235219
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=235219&action=review
patch looks ok besides style issue. thanks
> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1257 > + case AudioRole:
don't indent here
Takeshi Kurosawa
Comment 5
2014-07-21 14:29:45 PDT
Created
attachment 235248
[details]
Patch (indetation fix) Fixed indentation.
James Craig
Comment 6
2014-07-21 14:49:57 PDT
Comment on
attachment 235248
[details]
Patch (indetation fix) View in context:
https://bugs.webkit.org/attachment.cgi?id=235248&action=review
> Source/WebCore/accessibility/AccessibilityObject.cpp:320 > + || role == FooterRole
We definitely don't want this. <footer> can be used hundreds of times per page. For example, each post in a Facebook feed can have a footer. There's another open bug about Footer versus ContentInfo. This would make all of them landmarks. You only want footer to map to content info when it's not a descendant of an article or section:
http://www.w3.org/html/wg/drafts/html/CR/dom.html#sec-strong-native-semantics
Just pull this out and it'd be okay to address the rest in a separate bug.
James Craig
Comment 7
2014-07-21 14:51:20 PDT
related to
bug 109013
James Craig
Comment 8
2014-07-21 23:55:03 PDT
(In reply to
comment #6
)
> You only want footer to map to content info when it's not a…
Should have read:
> You only want footer to *be a landmark* when it's not a…
Takeshi Kurosawa
Comment 9
2014-07-22 05:49:16 PDT
Created
attachment 235286
[details]
Patch (drop footer element) Drop footer element as per review comment
Takeshi Kurosawa
Comment 10
2014-07-22 06:11:48 PDT
Created
attachment 235287
[details]
Patch (drop footer element) Oops! The previous patch contains wrong ChangeLogs.
chris fleizach
Comment 11
2014-09-05 09:40:09 PDT
Comment on
attachment 235287
[details]
Patch (drop footer element) thanks
James Craig
Comment 12
2014-09-09 07:29:16 PDT
Thanks Takeshi!
James Craig
Comment 13
2014-09-09 07:30:01 PDT
Let us know if you need a CQ+, too.
James Craig
Comment 14
2014-09-09 07:34:32 PDT
Comment on
attachment 235287
[details]
Patch (drop footer element) Adding CQ+
WebKit Commit Bot
Comment 15
2014-09-09 08:10:08 PDT
Comment on
attachment 235287
[details]
Patch (drop footer element) Clearing flags on attachment: 235287 Committed
r173428
: <
http://trac.webkit.org/changeset/173428
>
WebKit Commit Bot
Comment 16
2014-09-09 08:10:13 PDT
All reviewed patches have been landed. Closing bug.
Steve Faulkner
Comment 17
2014-09-09 08:14:28 PDT
(In reply to
comment #6
)
> (From update of
attachment 235248
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=235248&action=review
> > > Source/WebCore/accessibility/AccessibilityObject.cpp:320 > > + || role == FooterRole > > We definitely don't want this. <footer> can be used hundreds of times per page. For example, each post in a Facebook feed can have a footer. There's another open bug about Footer versus ContentInfo. This would make all of them landmarks. > > You only want footer to map to content info when it's not a descendant of an article or section: >
http://www.w3.org/html/wg/drafts/html/CR/dom.html#sec-strong-native-semantics
> > Just pull this out and it'd be okay to address the rest in a separate bug.
- header (LandmarkBannerRole) is same "header element that is not a descendant of an article or section element."
http://www.w3.org/html/wg/drafts/html/CR/dom.html#sec-strong-native-semantics
the original implementation of these requirements (for header/footer) were in webkit, Firefox and Chrome followed suit.
James Craig
Comment 18
2014-09-09 08:29:21 PDT
Steve, if that is not working as expected, we'll need a second bug for that work.
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