Closed Bug 158905 Opened 22 years ago Closed 22 years ago

LINK screws up select events

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 156430

People

(Reporter: nlowrey, Assigned: rods)

Details

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BuildID:    

loading a stylesheet with link such as 

<link rel="stylesheet" type="text/css" href="bstyling.css">

renders the page correctly but causes problems with javascript and event 
firing. 

for example the page contains a form with a dropdown which has multiple items.

<select name="pvgroup" style="width:100%" size="1" onclick="top.setpvlist()" 
style="width:100%">

i create the page in javascript and write it out to a frame.

trying to set the selectIndex fails.

frmctl.document.datactl.pvgroup.selectedIndex = 1; 


Reproducible: Always
Steps to Reproduce:

2.
3.
Attached file run this page
->Form controls, unless there's a reason you think style data are computed
incorrectly.
Assignee: dbaron → rods
Component: Style System → HTML Form Controls
QA Contact: ian → tpreston
Attachment #92417 - Attachment mime type: text/plain → text/css
You're trying to access the frame's DOM before it is built, since the sheet load
blocks DOM construction.  You may want to move that code to the frame's onload
handler...

*** This bug has been marked as a duplicate of 156430 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 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: