<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3278</bug_id>
          
          <creation_ts>2006-05-12 11:37:56 +0000</creation_ts>
          <short_desc>Failure to identify pixel declarations on image height and widths</short_desc>
          <delta_ts>2006-05-14 23:31:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Black Widow">submit</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9760</commentid>
    <comment_count>0</comment_count>
    <who name="Black Widow">submit</who>
    <bug_when>2006-05-12 11:37:56 +0000</bug_when>
    <thetext>From XHTML1 Transitional DTD:
&lt;!ENTITY % Length &quot;CDATA&quot;&gt;
    &lt;!-- nn for pixels or nn% for percentage length --&gt;
-------

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 =&quot;foo.jpg&quot; width=&quot;200px&quot; height=&quot;100px&quot; alt=&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9783</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-05-14 23:31:59 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; The DTD imples that the unit lengths for image width and height should *not* be
&gt; 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. 

&gt; &lt;!ENTITY % Length &quot;CDATA&quot;&gt;

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

&gt;     &lt;!-- nn for pixels or nn% for percentage length --&gt;

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

Closing as &quot;not a bug&quot; for this particular tool, although obviously the need for something beyond validation is known.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>