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 8394 - does not report this:<a ..>></a> as problem
Summary: does not report this:<a ..>></a> as problem
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 trivial
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-28 20:23 UTC by BubikolRamios
Modified: 2009-11-29 21:21 UTC (History)
0 users

See Also:


Attachments

Description BubikolRamios 2009-11-28 20:23:06 UTC
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.This is ok markup:
<a ..>&lt;</a>
<a ..>&gt;</a>


2. This is not ok markup:
<a ..><</a>
<a ..>></a>

But valdator warns only about firt one from (2).

Regards
Comment 1 Ville Skyttä 2009-11-29 21:21:44 UTC
(In reply to comment #0)
> 2. This is not ok markup:
> <a ..><</a>
> <a ..>></a>
> 
> But valdator warns only about firt one from (2).

Validator is correct - the first one is not ok, but escaping ">" as "&gt;" in XML while a good general practice is not a must except in certain circumstances.  See
http://www.w3.org/TR/REC-xml/#syntax
http://annevankesteren.nl/2005/09/gt