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 3278 - Failure to identify pixel declarations on image height and widths
Summary: Failure to identify pixel declarations on image height and widths
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 11:37 UTC by Black Widow
Modified: 2006-05-14 23:31 UTC (History)
0 users

See Also:


Attachments

Description Black Widow 2006-05-12 11:37:56 UTC
From XHTML1 Transitional DTD:
<!ENTITY % Length "CDATA">
    <!-- nn for pixels or nn% for percentage length -->
-------

The DTD imples that the unit lengths for image width and height should *not* be specified when declared in pixels. Yet the following does not result in an error or warning:

img src ="foo.jpg" width="200px" height="100px" alt=""
Comment 1 Olivier Thereaux 2006-05-14 23:31:59 UTC
(In reply to comment #0)
> The DTD imples that the unit lengths for image width and height should *not* be
> specified when declared in pixels. 

Actually, no, the DTD only states that the length is CDATA, which has no constraint for units or any such things. 

> <!ENTITY % Length "CDATA">

This is only a comments... And therefore not something a DTD-aware parser can enforce.

>     <!-- nn for pixels or nn% for percentage length -->

Enforcing such constraints would be the job for a full conformance checker, not a "mere" validator.

Closing as "not a bug" for this particular tool, although obviously the need for something beyond validation is known.