Closed
Bug 366524
Opened 19 years ago
Closed 19 years ago
Error when append tabbox which created from xul string
Categories
(Toolkit Graveyard :: XULRunner, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: esaksankar, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Build Identifier: xulrunner 1.8.0.1
I have written following code
xulData = "<box xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul' xmlns:html = 'http://www.w3.org/1999/xhtml'>" +
"<tabbox flex='1' >" +
"<tabs>" +
"<tab id='existing-tab' label='Open Existing' linkedpanel='existing-panel' />" +
"<tab id='recent-tab' label='Open Recent' linkedpanel='recent-panel'/> " +
"</tabs>" +
"<tabpanels flex='1' >" +
"<tabpanel />" +
"<tabpanel />" +
"</tabpanels>" +
"</tabbox>" +
"</box>";
var box = parseXUL(xulData);
try{
document.documentElement.appendChild(box);
}catch(e){alert(e)}
when i execute this, it throws exception as "this.firstChild.setAttribute is not a function"
Why am i getting this exception? can you help me to solve the problem
-Esakkimuthu
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
| Reporter | ||
Comment 1•19 years ago
|
||
The following is "parseXul" function
function parseXUL (xulData){
var parser=new DOMParser();
var xmlobject=parser.parseFromString(xulData,"text/xml");
if (xmlobject.documentElement.tagName == "parsererror")
alert("Parsing Error");
else return xmlobject.documentElement.cloneNode(true);
}
| Reporter | ||
Updated•19 years ago
|
Severity: normal → major
Updated•19 years ago
|
Group: security
Comment 2•19 years ago
|
||
I don't get that exception when executing this code in JS shell in the context of browser.xul on firefox. If you have a problem you need help with and not a bug report, please ask in the newsgroups instead of filing a bug.
See the Community section on http://developer.mozilla.org/en/docs/XUL
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•10 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•