Currently to make our pages "Bobby Compliant" we have the line <?xml version="1.0" encoding="iso-8859-1"?>
This was a requirement given by our development team.
However I have been told that this causes problems. e.g. IE goes into "quirks mode"
Question is:
What exactly is the problem with IE going into quirks mode ?
What other problems does the <xml... syntax cause ?
How can I get my pages Bobby Compliant without the <xml... syntax ? I have noticed that CAST (the disabilities organisation (http://cast.org)) doesn't have the xml tag.
Why? What influence does the xml prolog have on accessibility? Ask them if they even serve these pages as application/xhtml+xml--which they probably are not, in which case the xml prolog is only a nuisance and a HTML 4.01 doctype would be just as appropriate.
By the way: Bobby approval is not the holy grail in accessibility checking, merely an indication; no automated process can cover everything. User testing and just common sense are more important.
However our development team insist that the <xml... line stays as it is required for bobby compliance
Simple - your team is wrong - the XML prolog has nothing to do with accessibilty at all. Even putting it aside and looking only at academic validation, the prolog is still optional.
Quote:
Originally Posted by ronaldb66
By the way: Bobby approval is not the holy grail in accessibility checking, merely an indication; no automated process can cover everything. User testing and just common sense are more important.
Amen, in fact I'll go further - Bobby is the anti-christ of accessibility testing. Automated testing is little more than a memory refresher - to remind you of things you might have missed - it cannot actually assess accessibility; but even for that, Bobby is the worst validator out there. Cynthia Says is far more useful - http://www.contentquality.com/
But ultimately, if you're serious about accessibility there's no substitute for manual auditing - go through the guidelines manually, and ask yourself if you meet each one.
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
the only problem i've had with <?xml ...?> is that it can interfere with php, but thats beyond the scope of this topic. If IE goes into quirks mode because of it(doubtful), it doesn't matter, all it means is that html will be rendered as html 4.0.1 instead of xhtml.
however if you use the following, most browsers will know what to do
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
We have to remember who we design webpages for (I dont recall a machine signing my contracts)
A good testing methodology is to get a sample group of users to review websites before they go live.
__________________
live every day as if it was your first
the only problem i've had with <?xml ...?> is that it can interfere with php, but thats beyond the scope of this topic.
I'd be interested in hearing more about it.
Quote:
If IE goes into quirks mode because of it(doubtful), it doesn't matter, all it means is that html will be rendered as html 4.0.1 instead of xhtml.
I'm not quite sure that I agree with your description, but I'd say that whether or not IE is in quirks or compliant mode does matter. (Incidentally, it's not doubtful, but a matter of record that IE6/Win goes into quirks when anything comes before the DTD.)
If a layout has been designed to work in IE/Win when in compliant mode, it's likely to go tits up to some extent if quirks mode is triggered.
Boxes are likely to expand, potentially throwing divs completely out of place, thereby breaking the layout considerably - and no-one wants to be serving up a badly broken layout to users of the most widely used browser available.
For my money, 'content negotiation' is the answer.
Last edited by Bill Posters; 03-07-2006 at 04:37 PM..
PHP has short tags, which are enabled by default, which makes <? a valid starting tag for PHP. PHP therefore tries to parse the XML prologue which results in errors. The best solution is just to use:
PHP has short tags, which are enabled by default, which makes <? a valid starting tag for PHP. PHP therefore tries to parse the XML prologue which results in errors. The best solution is just to use:
That explains why I've never encountered that particular problem.
I currently only serve up the XML declaration/prologue as part of a PHP-based content negotiation script, so it's already handled as necessary.
I also tend not to use short open tags, possibly as a consequence of offering PHP advice on web dev forums.
If I use and demonstrate verbose open tags, then I know they'll work regardless of whether short open tags are enabled in the person's PHP install.
Thx for the reminder, though.
Last edited by Bill Posters; 03-07-2006 at 05:12 PM..