XULContentSink does not produce CDATA nodes

NEW
Unassigned

Status

()

P5
normal
12 years ago
3 months ago

People

(Reporter: WeirdAl, Unassigned)

Tracking

({dom1, testcase})

Trunk
x86
Windows XP
dom1, testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

342 bytes, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

12 years ago
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
(Reporter)

Comment 1

12 years ago
Created attachment 238393 [details]
testcase
(Reporter)

Comment 2

12 years ago
https://bugzilla.mozilla.org/attachment.cgi?id=238393&content_type=application/xml does correctly generate the CDATA section node.
(Reporter)

Comment 3

12 years ago
per discussion with sayrer
Summary: XUL parses CDATA sections as text nodes → XULContentSink does not produce CDATA nodes

Updated

10 years ago
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
You need to log in before you can comment on or make changes to this bug.