A bug in the validator ?

P

picayunish

Good day all,

When use a single quote e.g. <div style='border: 0px;'> instead of a
dubble quote, the page validates.
Is this a well known bug or not.
 
B

brucie

When use a single quote e.g. <div style='border: 0px;'> instead of a
dubble quote, the page validates.

3.2.2 Attributes
By default, SGML requires that all attribute values be delimited using
either double quotation marks (ASCII decimal 34) or single quotation
marks (ASCII decimal 39). Single quote marks can be included within the
attribute value when the value is delimited by double quote marks, and
vice versa. Authors may also use numeric character references to
represent double quotes (") and single quotes ('). For double
quotes authors can also use the character entity reference &quot;.

In certain cases, authors may specify the value of an attribute without
any quotation marks. The attribute value may only contain letters (a-z
and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII
decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal
58). We recommend using quotation marks even when it is possible to
eliminate them.
http://www.w3.org/TR/html401/intro/sgmltut.html
Is this a well known bug or not.

not
 
P

picayunish

brucie said:
in post <picayunish said:




3.2.2 Attributes
By default, SGML requires that all attribute values be delimited using
either double quotation marks (ASCII decimal 34) or single quotation
marks (ASCII decimal 39). Single quote marks can be included within the
attribute value when the value is delimited by double quote marks, and
vice versa. Authors may also use numeric character references to
represent double quotes (") and single quotes ('). For double
quotes authors can also use the character entity reference &quot;.

In certain cases, authors may specify the value of an attribute without
any quotation marks. The attribute value may only contain letters (a-z
and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII
decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal
58). We recommend using quotation marks even when it is possible to
eliminate them.
http://www.w3.org/TR/html401/intro/sgmltut.html




not

Thanx Brucie for the info.
 
A

Andy Dingley

Is this a well known bug or not.

No, it's not a bug.

Now what was your question again ?

Of all the _many_ "bug in the validator" reports to alt.html over the
years, have any of them ever really been bugs ?
 
T

Toby A Inkster

Andy said:
Of all the _many_ "bug in the validator" reports to alt.html over the
years, have any of them ever really been bugs ?

Not sure about the HTML validator, but the CSS validator is full of them
-- mainly in the HTML parsing part.

Try:

<link href="foobar" rel="stylesheet" type="test/css"
media="screen,projection">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top