feed2js icon indicating copy to clipboard operation
feed2js copied to clipboard

feed output not WCAG 2.0 compliant

Open kphunter opened this issue 12 years ago • 3 comments

Hi,

According to http://www.w3.org/TR/WCAG20-TECHS/SCR21.html, the document.write() method does not work with XHTML when served with the correct MIME type (application/xhtml+xml). I'm looking into forking the code with DOM functions but might need a little help...

Thanks,

Kyle

kphunter avatar Jul 30 '13 16:07 kphunter

That would be new stuff to me, but seems like it should be possible. I guess I am a bit lost on who this affects? What is the use case where the script fails? I have yet to see someone say they were unable to use it for this reason (not trying to be difficult but to understand)

cogdog avatar Jul 30 '13 16:07 cogdog

Hi Alan,

For sure... We use the fantastic feed2js tool to support announcements that are broadcast to a number of sites. One of our contracts is with the Canadian government, which has stipulated that all content be WCAG 2.0 compliant (http://www.theglobeandmail.com/news/politics/court-orders-ottawa-to-make-websites-accessible-to-blind/article1316244/).

kphunter avatar Jul 30 '13 17:07 kphunter

I'm thinking of adding one new optional variable to indicate the DOM style output; I am not sure of the backwards compatibility if I just replace the document.write output style. Either way, the script probably build all the content first as a string, and then output it the appropriate way.

cogdog avatar Aug 01 '13 06:08 cogdog