Closed Bug 336142 Opened 18 years ago Closed 4 years ago

Template generated content does not render when using document.loadOverlay()

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mark.brocato, Unassigned)

References

Details

(Whiteboard: [same as 285076?])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

If I have a menulist in an overlay which is loaded at runtime using document.loadOverlay(), and that menulist is populated by an RDF document using a template, the menupopup and menuitems are not rendered.

Here is how I am declaring the menulist:
<menulist
	datasources="<%= url %>"
	ref="<%= domain %>/lookup"
>
	<template>
		<menupopup>
			<menuitem uri="rdf:*" label="rdf:<%= domain %>/rdf#label" value="rdf:<%= domain %>/rdf#value"/>
		</menupopup>
	</template>
</menulist>

note that if template element is moved inside the menupopup (and the datasources and ref attributes moved onto the menupopup element), the menupopup shows but the menuitems do not. As long as the above code is not loaded with document.loadOverlay() it renders fine. One should also note that the content which is not rendered does not show up in the DOM inspector either.  Presumably, the nodes which are supposed to be generated by the template are never generated.

Reproducible: Always

Steps to Reproduce:
1.Create a base file, containing a <window> element
2.Create a file to use as the overlay, containing an <overlay> element and a template driven <menulist>
3.Create a simple rdf file to use as datasource for the menulist
4.Load the overlay file into the base file at runtime using the document.loadOverlay() method.
5.Observe that the menulist itself is rendered but none of the menuitems are rendered.

Actual Results:  
The menulist itself is rendered but none of the menuitems are rendered

Expected Results:  
The menulist, menupopup, and menuitems should be rendered.
Depends on: 282103
Isn't this just bug 285076?
Component: General → XUL
Product: Firefox → Core
QA Contact: general → xptoolkit.widgets
Whiteboard: [same as 285076?]

XUL overlays were removed in bug 1426763.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.