Closed
Bug 166467
Opened 22 years ago
Closed 22 years ago
document.createProcessingInstruction() busted in XUL
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: WeirdAl, Assigned: jst)
Details
In Mozilla 1.1beta, it appears document.createProcessingInstruction() is indeed broken in XUL, as commented on in bug 69840. I'll be happy to supply a testcase as needed. I have not yet had a chance to test it in a later build than 1.1b. I encountered it while attempting to create something similar to DOM Inspector, for bug 112775. Workaround is to create an XHTML document: var html_doctype = document.implementation.createDocumentType("html", "- //W3C//DTD XHTML 1.0 Transitional//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd") var html_doc = document.implementation.createDocument ("http://www.w3.org/1999/xhtml", "html", html_doctype) var pi = html_doc.createProcessingInstruction()
Comment 1•22 years ago
|
||
The code for CreateProcessingInstruction looks fine at first glance... how about that testcase?
Reporter | ||
Comment 2•22 years ago
|
||
I am a dunce. I meant createDocumentFragment(), not createProcessingInstruction (). The bug in question is bug 5222.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•