Closed Bug 83477 Opened 25 years ago Closed 25 years ago

nsDomParser chokes on xul-overlay in xul file.

Categories

(Core :: XML, defect)

x86
Windows 2000
defect
Not set
normal

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.
updating component.
Assignee: asa → harishd
Component: Browser-General → Parser
QA Contact: doronr → bsharma
xmlextras-->heikki
Assignee: harishd → heikki
Testcase, please.
Component: Parser → XML
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.
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.
Marking NEW.
Assignee: heikki → trudelle
Status: UNCONFIRMED → NEW
Component: XML → XP Toolkit/Widgets: XUL
Ever confirmed: true
QA Contact: bsharma → jrgm
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
Whiteboard: worksforme?
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)
I belive this one may have been fixed. I can properly retest it once #78622 is resolved.
Yeah, this is WFM.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
QA Contact: petersen → rakeshmishra
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: