<?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>1173</bug_id>
          
          <creation_ts>2005-03-19 14:08:34 +0000</creation_ts>
          <short_desc>Invalid xHTML in CSS validator, but Valid in xHTML Validator?</short_desc>
          <delta_ts>2006-04-21 05:53:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>XHTML1.0</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fforum.joelsplace.sg%2Findex.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joel Low">webmaster</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>michael.j.march</cc>
          
          <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>3907</commentid>
    <comment_count>0</comment_count>
    <who name="Joel Low">webmaster</who>
    <bug_when>2005-03-19 14:08:34 +0000</bug_when>
    <thetext>I have validated the page both in the CSS validator, with just the CSS source
file (hence i dare put the Valid CSS link on my page), and with the xHTML
validator (http://validator.w3.org/) It both validates, but when i use the
validator from /check/referer, it will generate this error:

Target: http://forum.joelsplace.sg/index.php
Please, validate your XML document first!
Line 187
Column 324
Element type &quot;null&quot; must be followed by either attribute specifications, &quot;&gt;&quot; or
&quot;/&gt;&quot;. 

I&apos;ve looked through the source code - looks beautiful (not literally) - no errors.

This has been bugging me for quite a while now...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3909</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-03-19 14:38:26 +0000</bug_when>
    <thetext>Yes, the validator notes in the results that it has only limited support for 
XML and this is one of the known limitations. You can find more limitations 
from http://www.websitedev.de/markup/validator/tests/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3911</commentid>
    <comment_count>2</comment_count>
    <who name="Joel Low">webmaster</who>
    <bug_when>2005-03-20 02:42:06 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yes, the validator notes in the results that it has only limited support for 
&gt; XML and this is one of the known limitations. You can find more limitations 
&gt; from http://www.websitedev.de/markup/validator/tests/

Does that means that i can still have the &quot;Valid CSS&quot; thing on my page? Do I
just directly link to the URI of my source CSS file?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8682</commentid>
    <comment_count>3</comment_count>
    <who name="Michael March">michael.j.march</who>
    <bug_when>2006-03-11 07:48:50 +0000</bug_when>
    <thetext>&lt;p&gt;
 &lt;a href=&quot;http://jigsaw.w3.org/css-validator/&quot;&gt;
  &lt;img style=&quot;border:0;width:88px;height:31px&quot;
       src=&quot;http://jigsaw.w3.org/css-validator/images/vcss&quot; 
       alt=&quot;Valid CSS!&quot;&gt;
 &lt;/a&gt;
&lt;/p&gt;

the &lt;img&gt; tag is not closed.  Add a space then / before the &gt; and that will resolve the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8683</commentid>
    <comment_count>4</comment_count>
    <who name="Michael March">michael.j.march</who>
    <bug_when>2006-03-11 07:50:37 +0000</bug_when>
    <thetext>To be a little more specific the code should look like:

&lt;p&gt;
 &lt;a href=&quot;http://jigsaw.w3.org/css-validator/&quot;&gt;
  &lt;img style=&quot;border:0;width:88px;height:31px&quot;
       src=&quot;http://jigsaw.w3.org/css-validator/images/vcss&quot; 
       alt=&quot;Valid CSS!&quot; /&gt;
 &lt;/a&gt;
&lt;/p&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8684</commentid>
    <comment_count>5</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2006-03-11 10:43:12 +0000</bug_when>
    <thetext>The CSS validator already detects if the validated document is XHTML, and ends the img element with &quot;/&gt;&quot; if it is.  For non-XHTML documents it uses the plain &quot;&gt;&quot; which is the right thing to do.  Compare for example:

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org&amp;usermedium=all
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yahoo.com&amp;usermedium=all</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8685</commentid>
    <comment_count>6</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2006-03-11 10:46:17 +0000</bug_when>
    <thetext>See also the note in parenthesis below the code in question in the results page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8686</commentid>
    <comment_count>7</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2006-03-11 10:48:14 +0000</bug_when>
    <thetext>Note that the bug was about some XML syntax error in the document the Validator was unable to detect, like adjacent attribute specifications and such. I&apos;m not sure why it&apos;s still open, or what comment #3 is about...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9355</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-04-21 05:53:21 +0000</bug_when>
    <thetext>ditto bjoern,
- the initial report was about a problem in the markup validator, which we know about
- later comments are about something different, and Ville explained properly why it is a non issue.
closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>