W3C home > Mailing lists > Public > public-html@w3.org > August 2008

[Bug 5997] New: Define script execution for XHTML5

From: <bugzilla@wiggum.w3.org>
Date: Thu, 28 Aug 2008 12:02:10 +0000
To: public-html@w3.org
Message-ID: <bug-5997-2495@http.www.w3.org/Bugs/Public/>

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

           Summary: Define script execution for XHTML5
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://hsivonen.iki.fi/test/moz/script-execution.xhtml
        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, cam@mcc.id.au, mike@w3.org, public-
                    html@w3.org


The spec should define script execution for XHTML5. It would be good to use the
same definition for running SVG scripts in both XHTML5 and HTML5.

Based on the demo http://hsivonen.iki.fi/test/moz/script-execution.xhtml , I
suggest the following, which seems to be what Gecko and WebKit do with both
XHTML and SVG scripts:
 1) When the DOM builder gets a start element event, append element node. Don't
run script yet.
 2) When the DOM builder gets a characters event, append characters to the
current node.
 3) When the DOM builder gets an end element event, pop. If the popped element
was 'script' in the http://www.w3.org/1999/xhtml or http://www.w3.org/2000/svg
namespaces, run the concatenation of child text nodes as script.

Note: Opera runs the concatenation of child descendant nodes instead, which
makes text that is descendant of more than one script element run many times.


-- 
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 Thursday, 28 August 2008 12:02:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:22 GMT