daisy / pipeline

Super-project that aggregates all Pipeline related code, provides a common tracker for Pipeline related issues and holds the Pipeline website
http://daisy.github.io/pipeline
20 stars 20 forks source link

ACE notes "serious" issue for incorrect lang attribute of html files in generated EPUB3 #699

Closed jbrugge closed 5 months ago

jbrugge commented 10 months ago

Expected Behavior

When running the dtbook-to-epub3 script on DAISY books, the EPUB3 result should have HTML files with a correct "lang" attribute for the element.

Actual Behavior

Running ACE against the EPUB3 output generates a report pointing out the missing property. { "@type": "earl:assertion", "earl:result": { "earl:outcome": "fail", "dct:description": "Value of lang attribute not included in the list of valid languages", "earl:pointer": { "cfi": [ "/" ], "css": [ "html" ] }, "html": "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"eng\">" }, "earl:assertedBy": "aXe", "earl:mode": "automatic", "earl:test": { "earl:impact": "serious", "dct:title": "html-lang-valid", "dct:description": "Ensures the lang attribute of the <html> element has a valid value", "help": { "url": "http://kb.daisy.org/publishing/docs/html/lang.html", "dct:title": "Language", "dct:description": "<html> element must have a valid value for the lang attribute" }, "rulesetTags": [ "cat.language", "wcag2a", "wcag311", "ACT", "TTv5", "TT11.a" ] } }

Steps to Reproduce

I'm running the Pipeline2 as a web service in a Docker container, as described in #674.

The script is run via curl: $ curl -v -X POST --form job-data='@Charlotte_s_Web.zip' --form job-request='@pipelineRequest_Charlotte.xml' http://localhost:8181/ws/jobs

The job request file looks like this: `

Githubissues.
  • Githubissues is a development platform for aggregating issues.