The default bug view has changed. See this FAQ.

XUL in XHTML doesn't show up

NEW
Unassigned

Status

()

Core
XUL
15 years ago
7 years ago

People

(Reporter: myk, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
x86
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

15 years ago
XUL embedded in an XHTML document doesn't appear in the document.  The DOM
inspector shows the nodes being in the document, but they don't show up.  See
the URL for a test case.
This is basically "by design", as a note.  XUL stuff really does not work
outside a XUL document...
(Reporter)

Comment 2

15 years ago
Last time I talked to hyatt (about six months ago), he said it should work. 
Note also that XUL works fine when inserted into an HTML document via XBL, f.e.:

http://www.melez.com/mozilla/xul-in-html/test5.html

Given that, I don't see why it shouldn't work when included in an XML document.
> Last time I talked to hyatt (about six months ago), he said it should work. 

Nope.  The code is simply not written to do it...

> Note also that XUL works fine when inserted into an HTML document via XBL

XBL special-cases XUL.  See nsXBLContentSink::CreateElement.

Perhaps the special-casing should move to nsXMLContentSink?
The XUL content sink is a big booger. We should be keeping whitespace nodes,
like we do for every other kind of XML/HTML doc. Yes, I know this involves
fixing all of our JS code which assumes there are no whitespace nodes... but it
definitely is a goal to have mixed xul/xhtml/mathml/(and SVG as possible),
without having to ship the document with an XUL mimetype.
Assignee: hyatt → nobody
Depends on: 95005
QA Contact: shrir → xptoolkit.xul

Updated

9 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets

Updated

9 years ago
Blocks: 461981
Duplicate of this bug: 348830
You need to log in before you can comment on or make changes to this bug.