The default bug view has changed. See this FAQ.

Support <xml-stylesheet href="#local" type="text/css" ?>

RESOLVED DUPLICATE of bug 61675

Status

()

Core
XML
RESOLVED DUPLICATE of bug 61675
14 years ago
14 years ago

People

(Reporter: WeirdAl, Assigned: Heikki Toivonen (remove -bugzilla when emailing directly))

Tracking

({helpwanted, testcase})

Trunk
Future
x86
Windows 98
helpwanted, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

14 years ago
The W3C suggests in the URL-referenced document that embedded stylesheets can be
referenced by an XML ID-type attribute.  Although technically the above is not
part of any W3C Recommendation, the document implies it should be considered as
part of or an amendment to CSS2 (at the top of the page).

http://www.w3.org/Style/Examples/002/doc.xml is a testcase they were kind enough
to provide.

Currently, Mozilla gives us an exception for that behavior:
Error: The stylesheet http://www.w3.org/Style/Examples/002/doc.xml#style was not
loaded because its MIME type, "text/xml", is not "text/css".

This bug may be a duplicate, but heikki and I could not find another bug filed
for this issue.
Keywords: helpwanted
Target Milestone: --- → Future
All I have to say is "eh".  ;)  We _could_ add support for this via the XML
sink; it'd have to notice such PIs and stash them away or something and then
when the element with the matching ID comes along it could kick off the sheet
load....

More interestingly, the example being cited is totally broken because the sheet
is not inside a CDATA section and will thus get parsed into real text nodes (and
worse yet, '<' and '>' chars in it will be parsed).

I have a gut feeling that as currently presented that example is a really bad
idea.....
Heikki commented on the dupe. :-)

*** This bug has been marked as a duplicate of 61675 ***
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.