Open Bug 352628 Opened 18 years ago Updated 2 years ago

XULContentSink does not produce CDATA nodes

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Windows XP
defect

Tracking

()

People

(Reporter: WeirdAl, Unassigned)

References

()

Details

(Keywords: dom1, testcase)

Attachments

(1 file)

342 bytes, application/vnd.mozilla.xul+xml
Details
Loading this source into Firefox or SeaMonkey, the description element's first child comes out with a node type of 3 (TEXT_NODE), not 4 (CDATA_SECTION_NODE) :

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <description id="cdata-test"><![CDATA[ XUL testing of CDATA sections ]]></description>
</window>

Steps to reproduce:
(1) Load the attached document into Firefox or SeaMonkey.
(2) Inspect document via DOM Inspector, look for the first child of the description element.

Expected results:
Node name is #cdata-section

Actual results:
Node name is #text

Tested on:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060729 SeaMonkey/1.0.4
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/0000000000 Minefield/3.0a1
Attached file testcase
per discussion with sayrer
Summary: XUL parses CDATA sections as text nodes → XULContentSink does not produce CDATA nodes
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
Assignee: general → nobody
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: