Comments (7)
Based on https://github.com/auto-wcag/auto-wcag/blob/master/_rules/SC2-2-1%2BSC3-2-5-meta-refresh.md
from act-rules.github.io.
Parsing the number needs to be more specific I think. The HTML 5 spec is pretty lax about what is allowed. e.g. <meta http-equiv=refresh content=" -00.12 foo">
should probably fail. I would suggest searching for ^\s*[+-]?([0-9]+)
and if there is a match and there are no non-zero digits in the group then it's a fail. https://www.w3.org/TR/html51/document-metadata.html#statedef-http-equiv-refresh
from act-rules.github.io.
Agreed. We maybe should have this point to the parser in the HTML spec.
I think this needs a few more test cases:
- Non-numeric value in content
- No http-equiv attribute
- No "refresh" value in the http-equiv attribute
from act-rules.github.io.
@jribbens: We have tried to factor in your comment into the Expectation, but with the new ACT Rules Format, the Expectations have to be written in plain (though unambiguous) language. I hope we succeeded here. Your example has been added as a test case.
@WilcoFiers: Test cases updated with your suggestions.
from act-rules.github.io.
@annethyme My example was an example of a fail, not a pass, and it didn't contain a comma. The expectation should probably not be mentioning commas or semicolons as they are not relevant (even your own example of "30"
has no punctuation).
from act-rules.github.io.
@jribbens This content=" -00.12"
should pass, since this is treated as 0 by the browser.
from act-rules.github.io.
Pull request created: #111
from act-rules.github.io.
Related Issues (20)
- [chore] Check for missing links (definition) in Glossary HOT 1
- [chore] Update ARIA 1.1 links HOT 1
- Add a test for missing squar-bracket links HOT 1
- meta-refresh rules, add explanation of meta element [bisz58] [bc659a]
- Clarify that "Image resource" can be any supported image format [0va7u6]
- Audio or video element that plays automatically has a control mechanism (4c31df): Inapplicable example 2 has audio
- "Zoomed text node is not clipped with CSS overflow": "link to a full version": source unclear HOT 4
- Verbose examples (rules format) HOT 11
- [4b1c6c]: CG Discuss: Remove rule "Iframe elements with identical accessible names have equivalent purpose " HOT 5
- Form field has non-empty accessible name [e086e5]: add 1.3.1 and 2.5.3 HOT 1
- Multiple <title> tags in a web page HOT 3
- Passed Example 2 of "HTML page has non-empty title" rule is quite ambiguous HOT 3
- "translations into a ..." links are pointing to the wrong URL - Meta viewport allows for zoom (proposed) - b4f0c3 HOT 2
- Passed Example 3 doesn't pass in Chrome - HTML images contain no text [0va7u6] HOT 1
- Add text-shadow failure - Text has minimum contrast [afw4f7]
- "Links with identical accessible names and same context serve equivalent purpose" [fd3a94]: Failed example 2 does not have **same** context
- "Programmatically Determined Link Context" definition is too broad HOT 4
- "Links with identical accessible names and same context serve equivalent purpose" [fd3a94]: Failed examples 4-8 have *huge* images HOT 1
- HTML page has non-empty title [2779a5]: Shadow root example
- Do branch publish for easier reviewing of PRs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from act-rules.github.io.