Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feed output not WCAG 2.0 compliant #9

Open
kphunter opened this issue Jul 30, 2013 · 3 comments
Open

feed output not WCAG 2.0 compliant #9

kphunter opened this issue Jul 30, 2013 · 3 comments

Comments

@kphunter
Copy link

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

@cogdog
Copy link
Owner

cogdog commented Jul 30, 2013

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)

@kphunter
Copy link
Author

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/).

@cogdog
Copy link
Owner

cogdog commented Aug 1, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants