<?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>5240</bug_id>
          
          <creation_ts>2007-11-01 15:53:32 +0000</creation_ts>
          <short_desc>fails by URI passes by direct input</short_desc>
          <delta_ts>2007-11-01 17:59:34 +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>check</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>https://www.ispor.org/LogInAdmin.aspx</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>william</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</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>17554</commentid>
    <comment_count>0</comment_count>
    <who name="">william</who>
    <bug_when>2007-11-01 15:53:32 +0000</bug_when>
    <thetext>https://www.ispor.org/LogInAdmin.aspx as a sample of a page that should (I think) pass. Checking by URI fails it on &quot;there is no attribute &quot;bordercolor&quot; &quot; which is not event rendered in a view source or pasted markup. It seems like the markup being checked by URI is not the XHTML rendered by the .Net engine but maybe legacy markup. Any thoughts?

Bill</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17555</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-11-01 17:00:50 +0000</bug_when>
    <thetext>This is a known bug in ASP.net. It does some browser sniffing (wrong), serves different markup based on that sniffing (wrong) and in some cases (e.g when serving to the validator), it serves invalid markup (wrong again).

You can check this by switching on &quot;show source&quot; in the validator, and comparing this to what asp.net serves to your browser.

I suggest you complain to the makers of ASP.net, and/or apply one of the configuration hacks which can be found here and there on the web, e.g.:
http://weblogs.asp.net/pscott/archive/2005/04/21/403716.aspx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17556</commentid>
    <comment_count>2</comment_count>
    <who name="">william</who>
    <bug_when>2007-11-01 17:10:27 +0000</bug_when>
    <thetext>I don&apos;t think this is an ASP.net bug per say. I understand that is how ASP.net works. However, if the markup produced by it is valid XHTML (it is) it should validate in your tool. Just because your tool is not recognized by ASP.net does not mean the markup produced by it is invaild. You are validating markup, not frameworks.

Bill


You replied:
This is a known bug in ASP.net. It does some browser sniffing (wrong), serves
different markup based on that sniffing (wrong) and in some cases (e.g when
serving to the validator), it serves invalid markup (wrong again).

You can check this by switching on &quot;show source&quot; in the validator, and
comparing this to what asp.net serves to your browser.

I suggest you complain to the makers of ASP.net, and/or apply one of the
configuration hacks which can be found here and there on the web, e.g.:
http://weblogs.asp.net/pscott/archive/2005/04/21/403716.aspx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17557</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-11-01 17:17:45 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I don&apos;t think this is an ASP.net bug per say.

Call it a broken feature if you like:
http://msdn2.microsoft.com/en-us/library/exc57y7e.aspx

This is a FAQ, bill. Dozens of ASP.net coders before you have hit this issue, and fixed their engine to produce valid markup, even when sent to the validator. I trust you can do the same.

&gt; However, if the markup produced by it is valid XHTML (it is) it should
&gt; validate in your tool. Just because your tool is not recognized by ASP.net does
&gt; not mean the markup produced by it is invaild. You are validating markup, not
&gt; frameworks.

You are contradicting yourself. Indeed, the validator just validates markup. If given invalid markup, it will mark it as invalid, without any consideration of markup. The fact that asp.net (or any other tool) sends invalid markup is not the validator&apos;s problem.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17558</commentid>
    <comment_count>4</comment_count>
    <who name="">william</who>
    <bug_when>2007-11-01 17:33:49 +0000</bug_when>
    <thetext>No, actually you misunderstand me. My point is that the markup returned to the browser by ASP.net is valid for the page as evidenced by the pass when direct input is used.
Valid is valid, not valid only if validated by direct input.

Thanks for listening.

&gt;&gt;
You are contradicting yourself. Indeed, the validator just validates markup. If
given invalid markup, it will mark it as invalid, without any consideration of
markup. The fact that asp.net (or any other tool) sends invalid markup is not
the validator&apos;s problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17559</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-11-01 17:59:34 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; My point is that the markup returned to the
&gt; browser by ASP.net is valid for the page as evidenced by the pass when direct
&gt; input is used.

it is valid, but only when it&apos;s sent to your browser, and then you copy-paste it into the validator. When asp.net sends content directly to the validator it sends something *different*, which is not valid.

In other words: the content asp.net sends your browser (and which you can validate successfully) is NOT THE SAME as the content asp.net sends directly to the validator. Just &quot;view source&quot; in your browser, &quot;show source&quot; in the validator, and compare.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>