Closed
Bug 46256
Opened 26 years ago
Closed 26 years ago
<COL> and <COLGROUP> HTML elements' event handlers dont work.
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: vladimire, Assigned: joki)
Details
Attachments
(1 file)
|
1.41 KB,
text/html
|
Details |
BUILD: 200071810
STEPS TO REPRODUCE:
Open the attached testcase
Click "click" text
Double click "dblclick" text
and perform the rest of the events in the same fassion.
EXPECTED RESULTS:
Each time you perform an event a dialog box should pop up informing you which
event just occured.
ACTUAL RESULTS:
Nothing will happen.
| Reporter | ||
Comment 1•26 years ago
|
||
Why should the COL get the event? The element visually on top is either the TD
or the text in the TD. The COL is not an ancestor of either of those nodes, so
it's not going to bubble up to the COL. To do this we need to break DOM2 event
model somehow, right? What does HTML4 say about events on columns? (I'd guess
nothing...)
| Reporter | ||
Comment 3•26 years ago
|
||
The HTML 4.01 Transitional DTD satates:
...
<!ELEMENT COLGROUP - O (COL)* -- table column group -->
<!ELEMENT COL - O EMPTY -- table column -->
<!ATTLIST TABLE -- table element --
%attrs; -- %coreattrs, %i18n, %events --
...
<!ENTITY % events
"onclick %Script; #IMPLIED -- a pointer button was clicked --
ondblclick %Script; #IMPLIED -- a pointer button was double clicked--
onmousedown %Script; #IMPLIED -- a pointer button was pressed down --
onmouseup %Script; #IMPLIED -- a pointer button was released --
onmouseover %Script; #IMPLIED -- a pointer was moved onto --
onmousemove %Script; #IMPLIED -- a pointer was moved within --
onmouseout %Script; #IMPLIED -- a pointer was moved away --
onkeypress %Script; #IMPLIED -- a key was pressed and released --
onkeydown %Script; #IMPLIED -- a key was pressed down --
onkeyup %Script; #IMPLIED -- a key was released --">
keypress, keyup, keydown events should not work for non-focusable content, see
bug 46042.
Comment 5•26 years ago
|
||
Mass update: changing qacontact to ckritzer@netscape.com
QA Contact: janc → ckritzer
Comment 6•26 years ago
|
||
marking wontfix per bug 46042's comments. Colgroup is not a focasable element.
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
Actually, this is INVALID because there is no way the COL element could get the
event (without breaking some standards issues). The text on which we create/try
to create an event sends the event bubbling up, through TD -> TR -> TABLE. It
will not, and it should not, go through COL or COLGROUP. I am changing the
resolution, sorry for the spam...
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → INVALID
| Reporter | ||
Updated•25 years ago
|
QA Contact: ckritzer → vladimire
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•