GithubHelp home page GithubHelp logo

w3c / specberus Goto Github PK

View Code? Open in Web Editor NEW
67.0 30.0 43.0 7.54 MB

Checker used at W3C to validate the compliance of Technical Reports with publication rules

Home Page: https://www.w3.org/pubrules/

License: MIT License

JavaScript 14.68% HTML 83.80% CSS 0.15% Handlebars 1.37% Shell 0.01%

specberus's People

Contributors

astorije avatar darobin avatar deniak avatar dependabot-preview[bot] avatar dependabot[bot] avatar dontcallmedom avatar frivoal avatar gbaudusseau avatar greenkeeper[bot] avatar greenkeeperio-bot avatar guibbs avatar halindrome avatar himorin avatar jean-gui avatar jennyliang220 avatar marcoscaceres avatar mikewest avatar nissy-insfc avatar nschonni avatar plehegar avatar sideshowbarker avatar sidvishnoi avatar snyk-bot avatar svgeesus avatar tabatkins avatar tripu avatar vivienlacourba avatar wseltzer avatar xfq avatar ylafon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

specberus's Issues

CSS & HTML validation errors & warnings

I'm not getting the same error reports for CSS using the CSS Validator and .jit.su tools. See for example http://www.w3.org/TR/2014/WD-charmod-norm-20140715/ (no errors in jit.su but plenty at http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fwww.w3.org%2FTR%2F2014%2FWD-charmod-norm-20140715%2FOverview.html

Btw, it would be good to make it clearer for CSS & HTML validation results which are warnings and which are errors. For any CSS warnings (and maybe html too) it might be good to have just "18 warnings" and then click on that to show the details, rather than show all immediately.

Rule "recursive All normative representations MUST validate as one of the following: HTML 4.x, or some version of XHTML or XHTML+RDFa that is a W3C Recommendation. HTML5 is also permitted with the following limitations: Inline markup for SVG 1.1 or MathML 2.0 is permitted but only with a (fallback) alternative. If the HTML5 validator issues content warnings, the publication request must include rationale why the warning is not problematic. Note: Please consider how your content will render in browsers that do not support HTML5. "

Is it implemented?

SVG CSS properties are flagged as not existing

When pubrules-checking a document with inline SVG diagrams that use CSS (such as the CSS Media Queries or Syntax specs), all of the SVG-specific CSS properties are flagged as not existing. The checker should know about these properties.

IPP exception

Leave room for IPP exceptions (ie: when the disclosure page is not following the usual pattern, example: TAG).

0

Is it implemented?

Reset data model and output when checking a second spec

When checking twice without reloading the page, errors and warnings add up to the previous' check output.
All the messages, counters for errors and warnings, the summary of results, etc. — all should be reset before re-running.

The hierarchy of available profiles is hard-coded in the UI

Values and labels in the drop-down menu should be populated somehow from the set of profiles under lib/profiles/ — we may need to add some metadata to those profiles for that.

This would simplify maintenance of profiles and rules, and avoid mistakes resulting from the redundancy that we have now. Admittedly, it would also introduce new complexity.

Check against inconsistencies in URLs of this/previous/latest versions

Two related checks:

  1. Check against inconsistency when previous version URIredirected latest version URI.
  2. This version URIprevious version URI.

About the first one:

  • OK when Previous Version of the document to be published == the document behind the Latest Version
  • FAILURE otherwise.

Edge cases:

  • Once the document is published, this rule cannot return OK anymore.
  • PER: after publication, the Latest Version must not change (point to the REC rather than the published PER).

Hopefully I will come up with a PR someday, but I want to agree on a decision before anyway.

About no. 2:

Echidna has published (wrongly) already a spec with this version URI = previous version URI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.