Last Comment Bug 183641 - XUL in XHTML doesn't show up
: XUL in XHTML doesn't show up
Status: NEW
:
Product: Core
Classification: Components
Component: XUL (show other bugs)
: Trunk
: x86 Linux
: -- normal with 4 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Neil Deakin
Mentors:
http://www.melez.com/mozilla/xul-in-h...
: 348830 (view as bug list)
Depends on: 95005
Blocks: remote-xul 461981
  Show dependency treegraph
 
Reported: 2002-12-04 18:52 PST by Myk Melez [:myk] [@mykmelez]
Modified: 2010-06-16 11:19 PDT (History)
16 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Myk Melez [:myk] [@mykmelez] 2002-12-04 18:52:51 PST
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.
Comment 1 Boris Zbarsky [:bz] (still a bit busy) 2002-12-04 22:00:32 PST
This is basically "by design", as a note.  XUL stuff really does not work
outside a XUL document...
Comment 2 Myk Melez [:myk] [@mykmelez] 2002-12-06 14:45:06 PST
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.
Comment 3 Boris Zbarsky [:bz] (still a bit busy) 2004-05-01 15:07:00 PDT
> 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?
Comment 4 Benjamin Smedberg [:bsmedberg] 2004-05-01 15:49:45 PDT
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.
Comment 5 Jonas Sicking (:sicking) No longer reading bugmail consistently 2010-06-16 11:19:24 PDT
*** Bug 348830 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.