Log in

Accessify Forum - Accessibility Discussion

Latest Tweets

Web #accessibility training in Edinburgh this fall: about WCAG2, understand WAI-ARIA, more http://www.rnib.org.uk... - Gary

Yesterday, RT: @webaxe

Blog RE practical research into #HTML5 & #accessibility - http://www.accessiblec... by @jkiss - Gary

Yesterday, RT: @stcaccess RT @Meera404

.@v may I suggest you add November's Accessing Higher Ground accessibility conference to lanyrd.com, too? http://j.mp/bbPai...

Yesterday, RT: @stcaccess

Drupal.org now has a quick link to all #accessibility issues. #code #a11y #axs - Gary

2 days ago, RT: @mpaciello RT @Bojhan

2 of 2:Ask @jsteh for access to #longdesc! #a11y - Gary

6 days ago

Read more...

Currently Online

No registered users are online.

w3c Valid xhtml/Accessibility question

  • Reply to topic
  • Post new topic

Home / Legal Issues & Web Standards / w3c Valid xhtml/Accessibility question

Goto page 1, 2, 3  Next

Reply with quote Hi,

A friend and I were having a discussion about xhtml validation and I thought I'd run it past you guys.

Does failing xhtml validation mean that your site is not accessible?

I know it's a broad question but that was the point of the discussion so I won't complicate it with details.

Appendix A on http://www.w3.org/... covers validation but it's not a guideline, and my interpretation of it is more as a recommendation of using a validator to alert you to any missing tags such as 'alt' on images etc.
Reply with quote short answer - depends.

if the invalid xhtml is a missing closing tag for links then it sure as hell would affect accessibility - but even more so it would affect usability.

If it's a missing closing tag for a paragraph then probably not.

A valid xhtml page is not necessarily accessible. An invalid xhtml page is not necessarily inaccessible.

A good example is: Zen Garden - Geocities (Hi Bruce).
_________________
my mind is on a permanent tangent
Reply with quote You may find this relevant from the WAIG 2 guidelines.
4.1.1 Parsing: In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features. (Level A)"

The easiest way to fulfil this is by validating.
http://www.w3.org/...
_________________
If it can go wrong it will. So don't worry about it.
Reply with quote
Rich Pedley wrote:

A good example is: Zen Garden - Geocities (Hi Bruce).


Beautiful!

Well I guess the crux of my question is this; would a document that had a <br> instead of a <br /> tag fail an accessibility audit. I personally can't see how it would but the other person I was discussing this with implied it would (we didn't discuss the <br> example). His line was this 'if it's not valid XHTML 1.0 Transitional (or whatever doctype) then it's not accessible'
Reply with quote
Cormac Maher wrote:
the crux of my question is this; would a document that had a <br> instead of a <br /> tag fail an accessibility audit. I personally can't see how it would but the other person I was discussing this with implied it would

It rather depends upon how the audit has been set up - it is in breach of WCAG 1.0, so even a single failure to validate under WCAG 1.0 would mean that you could not state that the site reached WCAG 1.0 at the AA level.

However, if you are looking at the practical accessibility to the end-user, then I would agree with you that it is not likely to cause any real world accessibility problems.
_________________
Jack Pickard The Pickards Information Services| Blog | Twit
Reply with quote Valid markup was required in WCAG 1.0. The portion of WCAG 2.0 which AlunD quotes requires valid syntax and nesting. In this case, <br> in an XHTML 1.0 document would fail since that specification requires it be given an end tag. This is usually accomplished via a rather odd (imho) self-closing start tag syntax, so you do need <br />.

But if you use HTML 4.01 (which you should be) then <br> is correct and <br /> is incorrect.

Either one will work in text/html documents sent to any viable web browser. But the HTML 4.01 approach is more efficient.
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
Reply with quote Briefly: it doesn't always cause problems, but you should avoid it nevertheless.

With browsers as they are (i.e. dealing with the web as it is), invalid HTML is very unlikely to cause any serious accessibility problems unless it deforms the DOM in a way that would affect all users, impaired or otherwise. The earlier example of an improperly closed link is a good one; on the other hand, an unencoded ampersand in a URL probably won't be noticed by anyone who doesn't actually run your page through a validator.

Serving invalid pages is not an ideal proposition if you can possibly help it*, but invalid HTML is the reality of the web, and most browsers have fairly robust mechanisms for making sense out of it. Since screenreaders take the output from browsers, the accessibility of the page is as good as what sense a browser can make from it, which is usually "just enough".

* Some people dispute the practicality of validation. I myself find it very useful: I often catch errors through validation that messed up the DOM enough to cause the page to render improperly, or broke some Javascript. If I was using invalid HTML anyway, these errors would take longer to find because by this means because they would be buried among whatever other errors I decided to tolerate.
Reply with quote
Ben Millard (Cerbera) wrote:
But if you use HTML 4.01 (which you should be).
Agreed, I also find HTML is also quicker to develop in (add this advantage to your list Ben?) becuase you do not need to pointlessly close tags and also HTML has less validation errors to correct. The main thing holding me back using HTML on client sites is that most popular WYSIWYG editors still only output XHTML. Hopefully HTML5 will stop this nonsense and we will see a reverse trend.
_________________
Johan De Silva / Portfolio | Place of Work @Flipside | Read my movie reviews punk!
Reply with quote
Johan007 wrote:
I also find HTML is also quicker to develop in (add this advantage to your list Ben?)
Done. On my own websites, I omit </p>, </li> and many other optional end tags. Having so for a couple of years, I am now 100% convinced it makes HTML easier to author.

Even if you're piecing the markup together in PHP, omitting optional tags simplifies the code. Especially for nested lists and any data tables.
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
Reply with quote
Ben Millard (Cerbera) wrote:
Johan007 wrote:
I also find HTML is also quicker to develop in (add this advantage to your list Ben?)
Done. On my own websites, I omit </p>, </li> and many other optional end tags. Having so for a couple of years, I am now 100% convinced it makes HTML easier to author.

...and I'm the grumpy one sat in the corner who still likes XHTML as a markup language and couldn't really care whether it's served as text/html or not Smile
_________________
Jack Pickard The Pickards Information Services| Blog | Twit
Reply with quote oh oh oh another advantage... I think (therefore not an expert who may know better) that HTML4.01 sites are quicker to convert to HTML5 Cool

Simply adding
Code:
<!doctype html>
onto my portfolio passes validation.
_________________
Johan De Silva / Portfolio | Place of Work @Flipside | Read my movie reviews punk!
Reply with quote
JackP wrote:
[…]I'm the grumpy one sat in the corner who still likes XHTML as a markup language and couldn't really care whether it's served as text/html or not Smile


I like XHTML as a markup language for certain purposes (e.g. SVG, MathML), but not just for sending marked-up text to browsers.

I should note that my XHTML doesn't look much like the "Transitional" pseudo-XML that most people write. I always include the charset PI, stylesheets are attached in PIs and not links, and I don't bother with spaces before the closing slashes. If IE has to read my pages, IE gets them transformed into HTML. Smile
Reply with quote
jordan wrote:
I like XHTML as a markup language for certain purposes (e.g. SVG, MathML) [...]
Did you mean "XML" here?

jordan wrote:
If IE has to read my pages, IE gets them transformed into HTML. Smile
If you're only doing things HTML can do, you could simply use HTML.
_________________
My CV type thing and my Life of Ben (Blog). Nigel Peck's Accessify Forum Requirements.
Reply with quote
Ben wrote:
Jordan wrote:
I like XHTML as a markup language for certain purposes (e.g. SVG, MathML) [...]
Did you mean "XML" here?


No, I did mean XHTML, although I can see why you thought otherwise. Specifically, I've had occasion to use rather complex equations in XHTML documents while I was working on my university coursework, and therefore used the XHTML 1.1 plus MathML 2.0 plus SVG 1.1 doctype.

Ben wrote:
Jordan wrote:
If IE has to read my pages, IE gets them transformed into HTML. Smile
If you're only doing things HTML can do, you could simply use HTML.


Quite, we're in agreement that HTML is the best way to present marked-up text. Smile However, in my current pet project, I have marked-up text mixing intimately with SVG, so XHTML really is the only way. However, since I want it to work in IE, I'm using some rather curious XSLT and Javascript to make it all work with somewhat deformed HTML and VML, which is the closest IE gets to vector graphics in web pages.
Reply with quote In reply to the other XHTML thread:

In my opinion, and given that standard XHTML adds almost nothing to HTML 4.01, there are only a few reasons one should use XHTML:


  1. Your site, unlike 99.9% of websites ever made, actually uses other XML technologies such as MathML, SVG or client-side XSLT.
  2. The code you write has to be parsed as XML for some reason in your back-end. (It could be argued that, since you are using XML anyway, you should simply transform your output into valid HTML using XSLT.)
  3. Your site is specifically targeted at the very few mobile devices which only support XHTML—specifically, in this case, you should be using the XHTML Basic doctype which was written specifically for such devices, which very few people who use XHTML actually do. (And, again, you should arguably be transforming your output to HTML for the web anyway.)


This leaves a very restricted set of valid usecases for XHTML.

Goto page 1, 2, 3  Next

  • Reply to topic
  • Post new topic

Display posts from previous:   

All times are GMT

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum