As identified by @Niklan in #1077578-93: [Followup] Convert bartiks page.tpl.php to HTML5 the <main>
element "should not contain any content that is repeated across documents such as sidebars, navigation links, copyright information, site logos, and search forms." such as the sidebars, navigation, search forms, etc. At this time Beta1 does.
Drupal 8 should follow the HTML5 specs on release where possible http://www.w3.org/TR/2012/WD-html-main-element-20121217/
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff_9-11.txt | 531 bytes | bbarunte |
#11 | 2361047-move_main-11.patch | 1.23 KB | bbarunte |
#9 | 2361047-move_main-9.patch | 1.03 KB | bbarunte |
Comments
Comment #1
mgiffordComment #6
Ivan Berezhnov CreditAttribution: Ivan Berezhnov as a volunteer and at Drupal Ukraine Community for Levi9 commentedComment #9
bbarunte CreditAttribution: bbarunte at Reinblau commentedIn my opinion Issue was already fixed in Bartik, i fixed it in Stark too in core/modules/system/templates/page.html.twig and moved sidebars from the main section.
Comment #10
tstoecklerSo before the content region was together in one container with the sidebar regions, i.e.
... and now it's not:
I wonder if it still makes sense to have the three in one container, but just "move" the < main > element, i.e.:
What do you think?
Comment #11
bbarunte CreditAttribution: bbarunte at Reinblau commentedGood point - i moved class "layout-content" from the "div" to "main" and deleted obsolete "div".
Comment #12
bbarunte CreditAttribution: bbarunte at Reinblau commentedComment #13
tstoecklerDiscussed this at length with @bbarunte in person. Doing what I suggested would have left around an "empty" div in the default markup and that does not fit with core' markup being as minimal as possible out of the box. I think I agree with him, so marking this RTBC, as the original issue is resolved by this.
Comment #14
knyshuk.vova CreditAttribution: knyshuk.vova at Internetdevels, Drupal Ukraine Community commented+1 to RTBC
Comment #15
lauriiiSome sites might be using sidebars for displaying page specific content in which case it would make sense to still include the
aside
elements inside themain
element.Given that we most likely don't have any data, maybe we should figure out which assumption is more harmful. What do we sacrifice in making this change on sites where
aside
should be included in themain
? What is the implication of including static content inside themain
element?Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
This still seems like a valid 508 issue but agree need a way around #15.
Also there are other templates we may need to update.
Will need a change record before being RTBC too.
Comment #25
smustgrave CreditAttribution: smustgrave at Mobomo commented