Closed Bug 308701 Opened 19 years ago Closed 19 years ago

E4X XML constructor does not like xml declaration

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 290525

People

(Reporter: boogs, Unassigned)

Details

Attachments

(1 file)

<?xml version="1.0"?> kills the XML(<string>) constructor. Not sure if this is
per the spec or not, but it makes it difficult to work with XML generated by
other systems since the declaration is always present.
Attached file simplified testcase
invalid. see bug 277683 comment 8

please don't request unneeded privileges in attachments.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
See bug 277683 comment 9 too -- I'm sympathetic, it looks like ECMA-357 blew it
here, and for no good reason other than specifying in terms of wrapping that
darn <parent xmlns="...">...</parent> tag around the string to be parsed as XML.

/be
nbd, nothing a little regex couldn't fix. Thank god moz has perl5 regexes with
ungreedy quantifiers.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 290525 ***
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: