Closed
Bug 206949
Opened 22 years ago
Closed 21 years ago
event.target is a column but not a description when description in a grid
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: sacha, Assigned: saari)
Details
Attachments
(1 file)
863 bytes,
application/vnd.mozilla.xul+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; ru-RU; rv:1.4a) Gecko/20030401
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; ru-RU; rv:1.4a) Gecko/20030401
In the example below window element handled "onclick" event and alerts
event.target.nodeName.
File "test.xul":
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
orient="vertical" align="start" onclick="alert('target : ' +
event.target.nodeName)">
<description value="desription as value"/>
<description>desription as text node</description>
<grid>
<columns>
<column style="border:2px solid black;"/>
<column style="border:2px solid black;"/>
</columns>
<rows>
<row>
<description value="description as value in grid"/>
<description value="description as value in grid"/>
</row>
<row style="border:2px solid black;">
<description>description as text node in grid</description>
<description>description as text node in grid</description>
</row>
</rows>
</grid>
</window>
Reproducible: Always
Steps to Reproduce:
1. Save the file "test.xul" on your hard drive.
2. Start Mozilla.
3. Open file "test.xul".
4. Click on "description as value"
Actual result: "target : description" alerted.
Expected result: "target : description" alerted.
This is correct.
5. Click on "description as value in grid"
Actual result: "target : description" alerted.
Expected result: "target : description" alerted.
This is correct.
6. Click on "description as text node"
Actual result: "target : description" alerted.
Expected result: "target : description" alerted.
This is correct.
7. Click on "description as text node in grid"
Actual result: "target : column" alerted.
Expected result: "target : description" alerted.
This is a bug.
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
If I had to guess, this is probably because <row> and <rows> do not implement
IsContentOfType(nsIContent::eELEMENT) for some reason. Or it could be because
of weird parentage.
Status: UNCONFIRMED → NEW
Ever confirmed: true
![]() |
||
Comment 3•21 years ago
|
||
I get "description" for all the descriptions in that testcase in a current
build... Marking worksforme. Please reopen if this is still a problem, though.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•