[Bug 8795] New: The validator incorrectly accepts a self close for the script tag as valid html syntax.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=8795

           Summary: The validator incorrectly accepts a self close for the
                    script tag as valid html syntax.
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: thomas.bayus@abbott.com
         QAContact: www-validator-cvs@w3.org


The validator incorrectly accepts a self close for the script tag as valid html
syntax.  However, the html specs require a </script> follow a <script ... > tag

ie.  <script ... />  is treated the same way as <script ... ></script>

All of the browsers will gobble up the entire rest of html page looking for the
</script> close tag, and therefore display nothing.

I was cleaning up a web page changing all of the <br> tags to <br />, etc, and
I absentmindedly collapsed a <script ... ></script> pair down to <script ...
/>.
The validator accepted the self close syntax, but the page no longer renders.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 21 January 2010 19:55:21 UTC