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 5362 - SVG <script> Should Have @charset
Summary: SVG <script> Should Have @charset
Status: REOPENED
Alias: None
Product: SVG
Classification: Unclassified
Component: Scripting (show other bugs)
Version: All Specifications
Hardware: All All
: P2 normal
Target Milestone: Feature Request
Assignee: Doug Schepers
QA Contact: SVG Public List
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-11 23:20 UTC by Doug Schepers
Modified: 2009-01-05 10:56 UTC (History)
2 users (show)

See Also:


Attachments

Description Doug Schepers 2008-01-11 23:20:23 UTC
The SVG 'script' element should have a 'charset' attribute.  This may apply to other elements that link to external resources.

See the recent but about this in Mozilla's bug tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=4106
Comment 1 Doug Schepers 2008-01-11 23:42:04 UTC
On further conversation on IRC, I take this back.  I'd though at first it would be best to align with HTML, which does have a @charset, but Maciej from Apple points out that the referenced file should have its charset defined in its own MIME Type.

mjs: "it would be actively harmful if charset interpretation of a script was based on which document embeds it"

(also, the bug in mozilla is https://bugzilla.mozilla.org/show_bug.cgi?id=410628 )
Comment 2 Robert Longson 2008-01-14 11:01:24 UTC
How can you make local content work without a charset attribute?

We could define the charset as a fallback only; to be used if the content-type does not specify a charset.