Closed Bug 348830 Opened 18 years ago Closed 14 years ago

text-nodes inside a XUL element in a XHTML document break XBL bindings

Categories

(Core :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 183641

People

(Reporter: asaf, Unassigned)

References

Details

Attachments

(1 file)

989 bytes, application/vnd.mozilla.xul+xml
Details
While working on bug 346009, I noticed some issues related to text-nodes inside XUL code in a XHTML document.

First, at least with the menupopup binding, once text-nodes are included in the subtree of the dom element, e.g.:

<xul:menupopup>
  <xul:menuitem/>
</xul:menupopup>

the childNodes subtree of the element apparently includes the binding anonymous content and the text nodes.

Second, I've seen semi-random spacing changes between the XUL elements when I tabbed to and out of the menulist.
> the childNodes subtree of the element apparently includes the binding anonymous
> content 

Er... that's really wacky.  Post a testcase?
Still waiting for that testcase...
Could this just be bindings that depend on the XUL content sink's behavior of stripping whitespace?
The bug as originally filed, absolutely.  I just wanted a testcase that showed anonymous content appearing in the childNodes of a bound element, as described in comment 0.  That should absolutely not be happening.
I wonder if bug 183641 is a dupe of this.
Probably, yes.  Or rather vice versa...
Use javascript to import a button Node type=menu with <popupmenmu/>, and no label is displayed
Comment on attachment 340493 [details]
a short testcase of the bug

Interesting that you can tab through the widgets once, and then never again.
Note that this bug does not only affect Mac OS X,but Windows XP also.
If people can't put up a testcase addressing the question in comment 4, this should just be marked a duplicate of bug 183641 so people stop wasting time on this bug.
Making it so due to lack of response.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: