WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: RE: Forms

for

Number of posts in this thread: 1 (In chronological order)

From: Jukka Korpela
Date: Mon, Nov 25 2002 12:00AM
Subject: RE: Forms
No previous message | No next message

Philip Pawley wrote:

> This example shows how important it can be to include quotes
> around attribute values. The "/" in unquoted attributes are
> confusing the parser.

It is advisable to use quotes around attribute values, especially
if they contain characters like "/", but they don't really confuse
parsers - just people.

> <LINK href="Webmaster Survey_files/Forms.css"
> type=text/css rel=stylesheet>

A correct SGML parser, which is what (real) validators use,
will regard the second occurrence of "/" (outside quotes)
as terminating the tag. This may confuse the user of a validator,
but there is no confusion in the parser; it plays by the SGML
rules, nothing more, nothing less. For a detailed explanation,
see "The saga of the slashed validators",
http://www.cs.tut.fi/~jkorpela/qattr.html

Almost all browsers (I thinks Emacs w3 is the only exception
I have read about) fail to play by SGML rules and will treat
that "/" as just another data character, doing what the author
actually meant. No confusion.

Some modern browsers might obey XML rules, which are
greatly simplified versions of SGML rules, when fed with
documents purported to be XML, or more specifically XHTML.
In that case, that "/" would be taken as terminating the
tag, and the rest is just data.

This isn't specifically an accessibility issue. Rather, a matter
of normal robust authoring.

--
Jukka Korpela, senior adviser
TIEKE Finnish Information Society Development Centre
http://www.tieke.fi/
Diffuse Business Guide to Web Accessibility and Design for All:
http://www.diffuse.org/accessibility.html


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/