Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Shaarli's template W3C compliant #64 #77

Merged
merged 1 commit into from
Jan 9, 2015

Conversation

ArthurHoaro
Copy link
Member

#64

Every page should pass W3C validator. Further tests should be done, but that's a good start. Thanks to @virtualtam.

@ArthurHoaro
Copy link
Member Author

to see it, you may need a shaarli w/ enough links to display those links

True, I only tried it with an almost empty Shaarli.

could you briefly describe in the commit message which styling/conformity points are being fixed?

Which commit message?

Anyway,

Home page
& is not escaped in QRcode links (redundant with #57?);

Don't know about #57, but links should be valid.

the name attribute is obsolete for links;

Only ID is necessary.

paging IDs are duplicated (top and bottom), classes should be used instead;

Ok, but needs work for the last IDs.

specifying Javascript as the script language is deprecated.

Ok.

Tag cloud, Picture wall
center is deprecated.

Ok, replace with text-align: center CSS class.

Picture wall
the template declares div class="picwall_container", which should be an ID (which is the case in the CSS).

Ok.

Daily
& is not escaped in previous/next day links;

Ok.

the code used for the dashes surrounding the daily date is invalid and should be replaced by —,

Ok.

@virtualtam
Copy link
Member

could you briefly describe in the commit message which styling/conformity points are being fixed?

Which commit message?

As the size of the PR is quite small, there should only be one commit; during the review process, when taking feedback into account, you may either:

  • amend and re-(force-)push it on your w3c dev branch, which will update the PR;
  • for more consequent patches, issue a series of commits that can be squashed when the PR is ready for merge.

@ArthurHoaro
Copy link
Member Author

Alright, thanks for the help and the review. I'll do that when we decide the PR is ready to fly.

@nodiscc
Copy link
Member

nodiscc commented Jan 4, 2015

Hi @ArthurHoaro thanks for working on this. I'll be glad to merge your changes if each commit message details what points from #64 are fixed in it. You are not forced to fix the W3C compliance in ONE PR. For example a PR with only this would be welcome;

W3C compliance: fix duplicate IDs
  * #paging_older, #paging_newer become classes as the paging is displayed twice (top, bottom) in the linklist
  * work on https://github.com/shaarli/Shaarli/issues/64

Let me know if you need help with git commands needed to do this (you may need to split your commits using git rebase -i)

@ArthurHoaro ArthurHoaro force-pushed the w3c branch 2 times, most recently from 9d4b56d to c5aa7e0 Compare January 7, 2015 11:49
@ArthurHoaro
Copy link
Member Author

Let me know if that's good enough.

EDIT: Forced push removed @virtualtam commit comments.

@nodiscc
Copy link
Member

nodiscc commented Jan 8, 2015

Everything ok, thanks for the patch!

There are some missing explanations in the commit message (see above), can you add them? (and there is a duplicate line in the message). Just a git commit --amend on the w3c branch really. Otherwise I could do it when I get some time.

git remote add arthurhoaro https://github.com/ArthurHoaro/Shaarli/
git remote update; git checkout w3c; git commit --amend; #edit message here
git checkout master; git merge w3c

@nodiscc nodiscc added this to the 0.9beta milestone Jan 8, 2015
  * fix duplicate IDs - #paging_older, #paging_newer become classes as the paging is displayed twice (top, bottom) in the linklist
  * fix duplicate IDs - #paging_privatelinks and #paging_linksperpage become classes
  * daily links are now valid (use &amp)
  * name attribute is not used anymore on a tag in link list
  * center tag is replaced by CSS in picwall and tag cloud
  * action in form tag can't be empty, use # instead
  * fixed configure table with CSS instead of cellpadding, border, and valign
  * export links are now valid
  * remove "size" in input tag
  * Fix missing alt attributes for img elements
  * tpl/daily: Use HTML entities instead of char escape codes
  * tpl/export: fix missing </span> closing tag
  * Remove obsolete language attribute on <script> elements
@ArthurHoaro
Copy link
Member Author

  • Edit: I get it now. please add Fix missing alt attributes for img elements to the commit message.
  • Please add to the commit message: tpl/daily: Use HTML entities instead of char escape codes
  • Was the closing missing?
    If so please add tpl/export: fix missing closing tag to the commit message
  • Please add Remove obsolete language attribute on <script> elements to the commit message

It's done.

@nodiscc
Copy link
Member

nodiscc commented Jan 9, 2015


merci bien

nodiscc added a commit that referenced this pull request Jan 9, 2015
Make Shaarli's template W3C compliant #64
@nodiscc nodiscc merged commit a2d5ef2 into shaarli:master Jan 9, 2015
@nodiscc
Copy link
Member

nodiscc commented Jan 9, 2015

Continuing on #64

@virtualtam virtualtam modified the milestones: 0.9.0, 0.5.0 Jul 30, 2015
@ArthurHoaro ArthurHoaro deleted the w3c branch September 2, 2015 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants