This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 934 - XHTML 1.0 transitional pages validate even when one uses actual quotation marks around text instead of the character entity
Summary: XHTML 1.0 transitional pages validate even when one uses actual quotation mar...
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.7
Hardware: PC Windows XP
: P3 trivial
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-06 20:37 UTC by chess4ever
Modified: 2004-11-06 21:01 UTC (History)
0 users

See Also:


Attachments

Description chess4ever 2004-11-06 20:37:49 UTC
validator does not detect when one types " instead of " in an xhtml 1.0
transitional document. 

for example:
<p>
  "Eighy percent of success is showing up." - Woody Allen
</p>

the validator thinks this is okay and doesn't show anything as an error. Why? 

Wouldn't the correct code be...
<p>
  &quot;Eighy percent of success is showing up.&quot; - Woody Allen
</p>
Comment 1 Ville Skyttä 2004-11-06 21:01:24 UTC
There is no general requirement to use entities in place of single or double
quotes in any version of HTML or X(HT)ML.

However, if one has text containing quotes in _attribute values_, it needs to be
taken care of that they don't end the attribute value prematurely.  This can be
accomplished by using entities in the value or by choosing a " or ' around the
value that does not "conflict" with the literal quotes in the value.

BTW, you misspelled "Eighty" in the example ;)