ietf-tools / svgcheck

Check SVG against RFC schema
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Enhancement: warn when <desc> element is missing #21

Open ajeanmahoney opened 2 years ago

ajeanmahoney commented 2 years ago

The SVG element allows an author to provide a description of the artwork, and the contents of the element can be read by webpage readers, which makes the artwork more accessible to people who are visually impaired.

It would be nice if svgcheck warned if the element is missing or empty.

duerst commented 2 years ago

The description will be in a or <desc> element (or distributed over several of these). I agree this should be checked/warned. However, it's important to realize that a mechanical check is not enough, because tools cannot distinguish between a series of characters without meaning and a good description.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>