Opening a meta issues to start tracking our HTML5 conversion of Bartik. I would propose Bartik follow core's implementation as much as is practical. Once all the core templates etc are converted it should be a simple task of moving forward with the Bartik conversion.
| Comment | File | Size | Author |
|---|---|---|---|
| #43 | Bartik_HTML5.png | 163.12 KB | mgifford |
| #40 | interdiff.txt | 478 bytes | tim.plunkett |
| #40 | bartik-1179764-40.patch | 17.64 KB | tim.plunkett |
| #39 | drupal-convert_bartik_to_html5-1179764-39.patch | 17.64 KB | mbrett5062 |
| #34 | bartik-1179764-34.patch | 30.71 KB | tim.plunkett |
Comments
Comment #1
Jeff Burnz commentedTagging.
Comment #2
theborg commentedSubscribe.
Comment #3
robloachShould probably wait off on some of the Drupal templates which are still being converted (like #1077602: Convert node.tpl.php to HTML5). Also, extra bonus points if we could get rid of some of the tpl.php files entirely in place for some fancy CSS3. The less code, the better.
Comment #4
webchickQuestion. Was this issue fixed as a result of #1192044: Convert Bartik's layout to mobile-first and responsive ?
Comment #5
Jeff Burnz commentedNope.
Comment #6
mjohnq3 commentedThis patch does not include the maintenance-page.tpl.php as that issue is still not resolved: #1189822: Convert maintenance-page.html.twig to HTML5.
Comment #8
mjohnq3 commentedRe-rolled patch.
Comment #10
mjohnq3 commentedRe-rolled patch against latest pull.
Comment #12
mjohnq3 commentedOk, one template at a time.
comment-wrapper.tpl.phpis trivial.Comment #14
mjohnq3 commentedHuh? What does this have to do with changing
<div>to<section>?Comment #15
mbrett5062 commentedRetest, error has nothing to do with change AFAICT.
Comment #16
mbrett5062 commented#12: comment-wrapper-1179764-12.patch queued for re-testing.
Comment #17
mjohnq3 commentedOk, let's try
comment.tpl.php.Comment #19
mjohnq3 commented#17: comment-1179764-17.patch queued for re-testing.
Comment #21
mbrett5062 commentedYou will need to change the tests. They are still looking for 'comments' in DIV tags.
I.E.
You have changed to ARTICLE tag.
Comment #22
mgiffordOk, this is a pretty important change, but it is going to take someone to invest quite a lot of time in going through all of the *.php files & adjusting all of the affected tests.
It's amazing that even the little comment.tpl.php had 26 failed tests in it. #10 had 49,226 pass(es), 38 fail(s), and 20 exception(s) the last time it was tested.
This does need to get into D8, just not sure who if anyone is assigned to do it. Also might be worth reviewing with #1802566: Add ARIA landmarks for Bartik theme as they should go hand-in-hand.
Comment #23
mbrett5062 commentedI also believe the "attribution" should be in a
<header>element, whilst the "signature" & "links" should be in a<footer>element. But that is just my personal preference, so ignore me if you think otherwise.Comment #24
mgiffordI've got no problem with those suggestions. I'd like to see someone update the patch to deal with the broken simpletests though.
Comment #25
mbrett5062 commentedOK I would like to take this on. Will incorporate my suggestion from #23 if no one has any objections. Not sure of the order things need to be done in, will this wait till #1802566: Add ARIA landmarks for Bartik theme gets in, or should I make those changes also here. Would that not then make either one of these a duplicate, seems silly having 2 issues on the same code.
Comment #26
mbrett5062 commentedOK here goes, have updated HTML and fixed comment preview test. The previously failing RDFa tests seem to be fixed now, by the new tests not checking HTML tag's directly. Lets see what the bot thinks.
By the way, it looks like i changed a lot more then I did, only because I changed the indentation. I prefer the open rather then compact indentation, as it makes the template more readable for novices.
Comment #28
mbrett5062 commentedSo have now added test fixes, and also added the new ARIA roles required for such things as 'nav' and 'article'. We may need to close the other issue #1802566: Add ARIA landmarks for Bartik theme as duplicate now.
Comment #30
mbrett5062 commentedOK that was a little over zealous, here is revised patch, reverting translation test changes and also reverting action-links to non 'nav' element.
Still expect some translation tests to fail, but fewer of them. Can not see what I have done to make them fail even running tests locally, may need some guidance.
Comment #32
mbrett5062 commentedThat's the best I can do for now, no idea why the remaining 3 tests are failing. Have tried everything I can think of, if anyone has a clue, note it here, and I will fix it if possible.
Comment #33
mgiffordTagging & will call out for more help on this one.
Comment #34
tim.plunkettI did not review the patch at all, just rerolled and fix the test.
This included #1802566: Add ARIA landmarks for Bartik theme, which was not a good idea :) But now that's in, so who cares.
Also, for future reference, that's not what the "Needs tests" tag is for.
Comment #35
tim.plunkettThe changes
Changes like this make this impossible to review :( Is there any chance the indentation and line splitting could be kept separate from the actual changes for this issue?
Comment #36
mgiffordThanks for the revised patch & recommendations.
I didn't review the indentation/line splitting, but will look for it in the future.
What is the tag for "Desperately needs help with SimpleTest"? I had thought I'd heard "Needs tests" referenced on Drupal Ladder and thought I'd understood it's proper use..
We can work with the tests you've provided (if needed).
Comment #37
mbrett5062 commented@tim.plunkett thanks very much for your review/test help. Of course it is obvious now about the test. Thanks again. And your comment about the indentation changes has been noted, I do see the reasoning. I made those changes precisely because I could not get my head around the markup to make the HTML5 changes.
Will raise a new issue to correct the indentation, and for now revert this issue back to old indentation for easier review. Also noted about #1802566: Add ARIA landmarks for Bartik theme, a little over zealous there.
Thanks again for your help, I will get the hang of this one day, and stop trying to do everything in one patch.
See #1903048: Revise Bartik template indentation inline with best practices.
Comment #38
mbrett5062 commentedoopps lets change the status for now. Will post revised patch ASAP.
Comment #39
mbrett5062 commentedOK here is the revised patch, by the way, @tim.plunkett the changes to fix translation errors are no longer needed as they were fixed already in head. Hopefully this should now be green and easier to review.
I will work on the follow up issue when this is in.
Comment #40
tim.plunkettAh yes, #1595028: Convert tests using Standard profile to use Testing profile instead cleaned that up nicely!
Thank you so much for reducing the size of the patch.
I only have one tweak, I think this is good to go now!
Comment #41
mbrett5062 commentedThank for that, silly mistake on my part. OK hopefully this can get in soon, and I will do the follow up. I am hoping to spur on the 'twig' efforts as well.
Comment #42
mbrett5062 commentedUnassigning myself to attract reviews.
Comment #43
mgiffordI think this is good to go. Thanks @tim & @mbrett5062!
Comment #44
dries commentedCommitted to 8.x. Thanks.
Comment #45
dcrocks commentedI noticed the use of the new html5 semantic element 'main'. I haven't found very much discussion of that element except that it seems to be targeted for html5.1. And I can't find anything about browser support. The element seems to be just ignored.
Comment #46
Jeff Burnz commented<main>is pretty bleeding edge right now, its plausible it will be included (in the spec) but not really something I think we can use at this stage. If we are doing the display:block thing we could add it there. Pretty sure the latest shiv supports main.Comment #47
dcrocks commentedIt is being used in this patch. That's why I commented. But it doesn't seem to have any affect. It seems it is only decorative.