Closed Bug 217957 Opened 21 years ago Closed 21 years ago

XML "Basic Style" is different for styled and unstyled XML

Categories

(Core :: XML, enhancement)

x86
Windows 2000
enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: janegil, Assigned: hjtoi-bugzilla)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030718 http://landsbank.fo/test/styled.xml has a "Basic Page Style" that is different from the basic style used for unstyled.xml. These are really two different styles, "all inline" and "tree", and both should be available, no matter if the stylesheet processing instruction is present, or not. Btw, page source is really also a "style". Reproducible: Always Steps to Reproduce: 1. 2. 3.
The View menu allows switching between different CSS stylesheets. However, the "unstyled" view it is not just another CSS stylesheet, the document itself is transformed into HTML (you can see the difference if you select some text and choose "View Selection Source" from the context menu). I don't think switching "unstyled" view on and off can be done.
The prettyprinter view is not an "unstyled" view; it's a "document author did something really dumb, so we're going to try to make it palatable" view. Turning off style in an actual document that's properly styled should do just that -- turn off style. Nothing else. So I feel that this bug is invalid.
Right; if people want a real DOM view of the styled version, they should use the DOM inspector. Maybe we should offer user stylesheets (like Opera) one of which links to the pretty printer XBL. But that's a separate RFE.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.