Closed Bug 4598 Opened 22 years ago Closed 22 years ago

Can't place '#' in general entity value without escaping

Categories

(Core :: XML, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: tao, Assigned: nisheeth_mozilla)

Details

I am playing with the xpat parser and notice that it failed to substitutes a
text string containing "#0".

For example,  the following usage of entity would cause parsing error.

      <!ENTITY demo0 "Demo #0" >

      <button name="&demo;" >


But, the pareser takes this:


      <!ENTITY demo0 "Demo &#x23;0" >

      <button name="&demo;" >


Works fine in standalone expat!
Status: NEW → ASSIGNED
Target Milestone: M5
Accepting bug and setting target milestone to M5...
QA Contact: 3853 → 4346
Component: Apprunner → XML
Setting component to XML...
Target Milestone: M5 → M6
Moving bugs of lower priority to M6...
Moving non-crasher XML bugs to M7...
Target Milestone: M6 → M7
Changing QA contact to myself
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Here's what I tried to load up in viewer, on a 1 day old NT build:

<?xml version="1.0" ?>
<!DOCTYPE test [
   <!ENTITY demo0 "Demo #0">
]>

<test name="&demo0;">
Content of demo0 = '&demo0;'
</test>
---
The above test parsed with no problem and the content of the entity also
displayed correctly.  Marking bug fixed.
Status: RESOLVED → VERIFIED
verified on jun-15-99 build.
You need to log in before you can comment on or make changes to this bug.