<?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>19496</bug_id>
          
          <creation_ts>2012-10-12 07:07:03 +0000</creation_ts>
          <short_desc>XHTML documents treated as &quot;tag soup&quot;</short_desc>
          <delta_ts>2013-04-21 02:41:24 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Rafał Wrzeszcz">wrzasq</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</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>76066</commentid>
    <comment_count>0</comment_count>
      <attachid>1227</attachid>
    <who name="Rafał Wrzeszcz">wrzasq</who>
    <bug_when>2012-10-12 07:07:03 +0000</bug_when>
    <thetext>Created attachment 1227
Subject document.

As far as i know XHTML documents can have short tags for &lt;script&gt; element (eg. &lt;srcipt type=&quot;application/javascript&quot; src=&quot;/script.js&quot;/&gt;). However validator yelds that this element has no close tag.

&quot;Self-closing syntax (/&gt;) used on a non-void HTML element. Ignoring the slash and treating as a start tag.&quot;

Page is served as application/xhtml+xml with (X)HTML5 Doctype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77019</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-10-24 07:49:10 +0000</bug_when>
    <thetext>To validate XHTML5 and HTML5 documents, please use the W3C Nu validator directly:

  http://validator.w3.org/nu/

If you use that you&apos;ll see that it parses your document as XML/XHTML as expected, and finds no errors.

The cause of the behavior you&apos;re seeing with the existing W3C validator is that it ignores the fact that you&apos;re serving the document with a application/xhtml+xml MIME type; it just hands the documebt off to Nu validator backend without also passing on the mime type information.

There&apos;s nothing I can do to fix this on the Nu validator side, so I&apos;m moving it back to the previous component.

Ville, I can&apos;t remember now whether we discussed this previously, or whether this is something that&apos;s fixable in the Perl code. But if it&apos;s possible in the case of &quot;application/xhtml+xml&quot; documents to have the code pass the &quot;parser=xml&quot; option to the Nu backend, that should fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86440</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-04-21 02:41:24 +0000</bug_when>
    <thetext>This bug is stale now. Regardless, I don&apos;t think there behavior of the legacy validator is going to be changed any time soon. Nobody is currently maintaining it. Please just always use http://validator.w3.org/nu/

There really is no value in using the legacy http://validator.w3.org at this point. You can even use http://validator.w3.org/nu/ for HTML4 documents if you want.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1227</attachid>
            <date>2012-10-12 07:07:03 +0000</date>
            <delta_ts>2012-10-12 07:07:03 +0000</delta_ts>
            <desc>Subject document.</desc>
            <filename>index.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>2542</size>
            <attacher name="Rafał Wrzeszcz">wrzasq</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgaHRtbD4KPGh0
bWwgeG1sbnM9Imh0dHA6Ly93d3cudz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wvZm9vdGVyPgogICAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>