<?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>8795</bug_id>
          
          <creation_ts>2010-01-21 19:55:19 +0000</creation_ts>
          <short_desc>The validator incorrectly accepts a self close for the script tag as valid html syntax.</short_desc>
          <delta_ts>2011-08-23 20:24:35 +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></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="Thomas Bayus">thomas.bayus</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>31158</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Bayus">thomas.bayus</who>
    <bug_when>2010-01-21 19:55:19 +0000</bug_when>
    <thetext>The validator incorrectly accepts a self close for the script tag as valid html syntax.  However, the html specs require a &lt;/script&gt; follow a &lt;script ... &gt; tag

ie.  &lt;script ... /&gt;  is treated the same way as &lt;script ... &gt;&lt;/script&gt;

All of the browsers will gobble up the entire rest of html page looking for the &lt;/script&gt; close tag, and therefore display nothing.

I was cleaning up a web page changing all of the &lt;br&gt; tags to &lt;br /&gt;, etc, and I absentmindedly collapsed a &lt;script ... &gt;&lt;/script&gt; pair down to &lt;script ... /&gt;.
The validator accepted the self close syntax, but the page no longer renders.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55727</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2011-08-23 20:24:35 +0000</bug_when>
    <thetext>It is not a validation error to use &lt;script ... /&gt; in XHTML, but as you noted, doing so does have compatibility issues with browsers.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>