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

add HTML5 validation Grunt task #291

Merged
merged 5 commits into from
Feb 27, 2014
Merged

add HTML5 validation Grunt task #291

merged 5 commits into from
Feb 27, 2014

Conversation

cvrebert
Copy link
Contributor

Also includes fixes to make the HTML validate.
Fixes #282.

@cvrebert cvrebert added the grunt label Feb 26, 2014
@@ -43,7 +43,7 @@ <h1 class="title">Movie finder</h1>
<li class="table-view-cell table-view-divider">Recommended movies</li>
<li class="table-view-cell media">
<a class="push-right" href="choose-theater.html" data-transition="slide-in">
<img class="media-object pull-left" src="http://placehold.it/64x64">
<img class="media-object pull-left" src="http://placehold.it/64x64" alt="">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Placeholder Image" for these placehold.it images?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding from skimming http://webaim.org/techniques/alttext/ is that alt text would be redundant in this case since we're within an <a> and there's already the movie title+description in the media-body, but I'm a novice when it comes to alt text, so I'm quite open to guidance here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can allow alt failure, like in Bootstrap.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh. Screen readers doesn't like images without an alt atrribute. 😟

Right alt attribute for this placeholder images is Placeholder or Placeholder image. Could you add alt?

@connor
Copy link
Contributor

connor commented Feb 26, 2014

👍

@XhmikosR
Copy link
Member

I say just exclude the alt check for now.

@connors connors added this to the 2.0.1 milestone Feb 26, 2014
@cvrebert
Copy link
Contributor Author

@XhmikosR Good catch. Added the missing class to the iframe.

Also, added non-blank alt text to the movie image links per folks' feedback.

@zlatanvasovic
Copy link

Looks good to me.

2014-02-26 20:27 GMT+01:00 Chris Rebert [email protected]:

@XhmikosR https://github.com/XhmikosR Good catch. Added the missing
class to the iframe.

Also, added non-blank alt text to the movie image links per folks'
feedback.


Reply to this email directly or view it on GitHubhttps://github.com//pull/291#issuecomment-36165821
.

Zlatan Vasović - ZDroid

@XhmikosR
Copy link
Member

LGTM.

cvrebert added a commit that referenced this pull request Feb 27, 2014
add HTML5 validation Grunt task
@cvrebert cvrebert merged commit 9a89d4f into master Feb 27, 2014
@cvrebert cvrebert deleted the html-validation branch February 27, 2014 05:24
@mdo mdo mentioned this pull request Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add docs+examples HTML validation Grunt task?
5 participants