This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14770 - Parse <script> and <style> consistently in text/html
Summary: Parse <script> and <style> consistently in text/html
Status: RESOLVED DUPLICATE of bug 10901
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 10:20 UTC by Anne
Modified: 2011-11-11 10:48 UTC (History)
8 users (show)

See Also:


Attachments

Description Anne 2011-11-11 10:20:10 UTC
I.e. change the way <script> and <style> are parsed in the SVG and MathML contexts to be the same way they are parsed outside of it.

See also: http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/0812.html
Comment 1 David Carlisle 2011-11-11 10:45:31 UTC
(In reply to comment #0)
> I.e. change the way <script> and <style> are parsed in the SVG and MathML
> contexts to be the same way they are parsed outside of it.
> 
> See also:
> http://lists.w3.org/Archives/Public/public-webapps/2011OctDec/0812.html

valid mathml won't have script or style anyway, so I can see no possibility of objections to this from the mathml side. Speaking personally (not checked with the Math WG). I agree with the original comment that even if script/style were valid mathml they should be parsed as per html rather than as xml CDATA. Other aspects of the parse, notably omitted end tags follow html rules, so it isn't the case that you can simply cut and paste between the xml and html serialisations in any case.
Comment 2 Jonas Sicking (Not reading bugmail) 2011-11-11 10:48:57 UTC
Note that we can't simply use the current rules that HTML uses. We'll need to add some support for content surrounded by <![CDATA[ ... ]]>

*** This bug has been marked as a duplicate of bug 10901 ***