Closed
Bug 83477
Opened 25 years ago
Closed 25 years ago
nsDomParser chokes on xul-overlay in xul file.
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: pwilson, Assigned: hjtoi-bugzilla)
Details
(Whiteboard: worksforme?)
Attachments
(2 files)
Since c17th May nsDOMParser.cpp has generated NS_ERROR_FAILURE in
nsIDOMParser.parseFromString. Commenting out the <?Xul-overlay..?> directive in
my xul file removes the error. Prior to this date nsDOMParser worked
correctly.
The overlay in question is:
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>. I use this to
provide tool-tip text on toolbar buttons. The tool-tip functionality works
correctly when the XUL file is executed, so it is unlikely that it contains
syntax errors.
Comment 1•25 years ago
|
||
updating component.
Assignee: asa → harishd
Component: Browser-General → Parser
QA Contact: doronr → bsharma
| Reporter | ||
Comment 4•25 years ago
|
||
| Reporter | ||
Comment 5•25 years ago
|
||
| Reporter | ||
Comment 6•25 years ago
|
||
Set up supplied files so that thay can be invoked via a chrome url.
Run test by clicking the Press Me button. Then edit the test.js file to remove
the comment in front of the xul-overlay line. Re-run test. Note that parse is
now incomoplete. In this small test case I have been unable to prevoke the
exception I mentioned in the original report.
| Reporter | ||
Comment 7•25 years ago
|
||
Btw Please note that in the first case XMLSerializer does not produce a list of
the elements which are shown to be present by the getElementsByTagName. I
believe this is the result of dom.documentElement being null bug 78622.
Comment 8•25 years ago
|
||
Marking NEW.
Assignee: heikki → trudelle
Status: UNCONFIRMED → NEW
Component: XML → XP Toolkit/Widgets: XUL
Ever confirmed: true
QA Contact: bsharma → jrgm
Comment 9•25 years ago
|
||
Actually, this isn't a XUL problem per se. The 'test.js' is just trying to
use DOMParser to parse some a text string of XUL as an XML document.
It barfs when it sees the PI of '<?xul-overlay ...', but it barfs just the same
if the PI says '<?foopy-noopy ...'.
I don't know what the rules are for the allowed set of PI's, if there is
any restriction on what is permitted. But, hey, heikki probably knows :-]
A simpler case is just to do this in an HTML file, where test.js is the
attached javascript (i.e., ignore the XUL file in this example):
<html>
<head><script src="test.js"></script></head>
<body>
<input type=button value="Press Me" onclick="OnClick(event)">
</body></html>
Assignee: trudelle → heikki
Component: XP Toolkit/Widgets: XUL → XML
QA Contact: jrgm → petersen
| Assignee | ||
Updated•25 years ago
|
Whiteboard: worksforme?
| Assignee | ||
Comment 10•25 years ago
|
||
I believe there was a regression with the PIs. Now the testcase seems to be
working for me (tested with the HTML and test.js)
| Reporter | ||
Comment 11•25 years ago
|
||
I belive this one may have been fixed. I can properly retest it once #78622 is
resolved.
Comment 12•25 years ago
|
||
Yeah, this is WFM.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Updated•23 years ago
|
QA Contact: petersen → rakeshmishra
You need to log in
before you can comment on or make changes to this bug.
Description
•