[Bug 6978] New: Mark eof-terminated script elements as malformed

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

           Summary: Mark eof-terminated script elements as malformed
           Product: HTML WG
           Version: unspecified
          Platform: All
               URL: http://software.hixie.ch/utilities/js/live-dom-
                    viewer/saved/123
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: hsivonen@iki.fi
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org


When the tree builder sees an EOF, it should mark all HTML and SVG script
elements on the stack (SVG makes it possible to have more than one) as
malformed in the DOM. Then the serialization algorithm should check the
malformedness flag and omit the end tag of the <script> element if the element
has been marked malformed. This way, the malformedness round-trips, so
serializing and reparsing doesn't make a malformed script run.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/123 shows that
Firefox and Opera do this.


-- 
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 Friday, 29 May 2009 11:58:55 UTC