Closed
Bug 407606
Opened 18 years ago
Closed 18 years ago
e4x: invalid XML markup on new XML - comment parsing error
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mrinal.kant, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b1) Gecko/2007110904 Firefox/3.0b1 eMusic DLM/4.0_1.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b1) Gecko/2007110904 Firefox/3.0b1
The following gives an error: invalid XML markup
new XML('<!---- comment -->');
However, the following code gives no error
new XML('<!--- comment -->');
Note that there is one hyphen less in the latter example.
I was executing this code from within a firefox extension.
Reproducible: Always
Steps to Reproduce:
1. make a javascript file containing the code: new XML('<!---- comment -->');
2. execute the above script
3.
Actual Results:
The execution stops at the line containing new XML('<!---- comment -->');
In the error console, there is an error stating "invalid XML markup"
Expected Results:
There should be no error. The behaviour should be as when executing the following line:
new XML('<!--- comment -->');
Notice that the xml comment has only 3 dashes here and works ok. In the case when error is shown there are four dashes. Anything after 2 dashes and until the end of the comment should be acceptable.
Comment 1•18 years ago
|
||
http://www.w3.org/TR/REC-xml/#sec-comments
[[[
the string "--" (double-hyphen) MUST NOT occur within comments
]]]
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•18 years ago
|
||
thanks for the link.
You need to log in
before you can comment on or make changes to this bug.
Description
•