Closed Bug 228795 Opened 22 years ago Closed 21 years ago

Preformatted CDATA is displayed incorrectly

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sergiy, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031216 Firebird/0.7+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031216 Firebird/0.7+ this preformatted CDATA xml code is displayed incorrectly: <?xml version='1.0' encoding='utf-8'?> <!-- A SAMPLE set of slides --> <slideshow title="Sample Slide Show" date="Date of publication" author="Yours Truly" > <slide type="tech"> <title>How it Works</title> <item>First we fozzle the frobmorten</item> <item>Then we framboze the staten</item> <item>Finally, we frenzle the fuznaten</item> <item><![CDATA[Diagram: frobmorten <--------------- fuznaten | <3>^ | <1>| <1> = fozzle V | <2> = framboze Staten--------------------+<3> = frenzle <2> ]]></item> </slide> </slideshow> Firebird displays CDATA like: Diagram: frobmorten <--------------- fuznaten | <3>^ | <1>| <1> = fozzle V | <2> = framboze Staten--------------------+<3> = frenzle <2> instead of: Diagram: frobmorten <--------------- fuznaten | <3>^ | <1>| <1> = fozzle V | <2> = framboze Staten--------------------+<3> = frenzle <2> Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Diagram: frobmorten <--------------- fuznaten | <3>^ | <1>| <1> = fozzle V | <2> = framboze Staten--------------------+<3> = frenzle <2> Expected Results: Diagram: frobmorten <--------------- fuznaten | <3>^ | <1>| <1> = fozzle V | <2> = framboze Staten--------------------+<3> = frenzle <2>
http://www.w3.org/TR/REC-html40/types.html#h-6.2 CDATA is a sequence of characters from the document character set and may include character entities. User agents should interpret attribute values as follows: * Replace character entities with characters, * Ignore line feeds, * Replace each carriage return or tab with a single space. User agents may ignore leading and trailing white space in CDATA attribute values (e.g., " myval " may be interpreted as "myval"). Authors should not declare attribute values with leading or trailing white space.
so this is't a bug? if it is, it certainly isn't Firefox. ->Layout.
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Browser
QA Contact: core.layout
Version: unspecified → Trunk
comment 1 is irrelevant, it's quoting HTML on an XML bug. However, it's invalid anyway. CDATA may mean that everything is preserved in the DOM, but it doesn't set the CSS 'white-space' property. You need to do that yourself.
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.