Closed Bug 301573 Opened 20 years ago Closed 20 years ago

E4X: Problems with entities

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8beta4

People

(Reporter: Seno.Aiko, Assigned: brendan)

Details

(Keywords: js1.5)

Attachments

(1 file)

User-Agent: Mozilla/3.04 (WinNT; I) Build Identifier: Up-to-date JS debug shell This seems wrong: js> <xml>&lt;</xml> typein:1: SyntaxError: illegal XML character: typein:1: <parent xmlns=''><xml><</xml></parent> typein:1: .......................^ js> <xml>&amp;lt;</xml> < js> <xml>&amp;</xml> typein:3: SyntaxError: unexpected end of XML entity: typein:3: <parent xmlns=''><xml>&</xml></parent> typein:3: ......................^ Expected output (as seen in Rhino) would be: js> <xml>&lt;</xml> < js> <xml>&amp;lt;</xml> &lt; js> <xml>&amp;</xml> & Reproducible: Always Steps to Reproduce:
Confirmed. Note that the problem also occurs in XHTML documents within CDATA sections so this can't be the HTML parser.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Ready to check in the fix I'm about to attach. /be
Assignee: general → brendan
Keywords: js1.5
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta4
Attached patch easy fixSplinter Review
mrbkap r'd, to the extent he didn't write the patch (to which extent, I'm r'ing his work ;-). /be
Attachment #190054 - Flags: review+
Attachment #190054 - Flags: approval1.8b4+
Fixed. /be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Verified fixed, thanks!
Status: RESOLVED → VERIFIED
Flags: testcase?
Checking in regress-301573.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-301573.js,v <-- regress-301573.js
Flags: testcase? → testcase+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: