W3C home > Mailing lists > Public > public-html@w3.org > May 2009

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

From: <bugzilla@wiggum.w3.org>
Date: Fri, 29 May 2009 11:58:49 +0000
To: public-html@w3.org
Message-ID: <bug-6978-2495@http.www.w3.org/Bugs/Public/>
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 on the CC list for the bug.
Received on Friday, 29 May 2009 11:58:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:03 UTC