Closed Bug 281708 Opened 20 years ago Closed 20 years ago

Dom Insertion, InnerHTML = lose focus, no scroll wheel ability

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ctroxel, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

When using simple javascript to add elements to the DOM i lose the ability to
scroll the document with my mouse scroll wheel.

possible relation to bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=172125
https://bugzilla.mozilla.org/show_bug.cgi?id=216880


Reproducible: Always

Steps to Reproduce:
1) Open Test Url
2) Shrink window until you get scrollbars
3) click one of the links
4) try to scroll using mouse scroll wheel
5) click somewhere in white space of document
6) try to scroll again

Actual Results:  
after(4): no scrolling ability
after (6): yes scrolling ability

Expected Results:  
after (4): scrolling via mouse wheel should have worked.
I seem to have found a workaround for this bug.

There are now two more test cases linked to from the first test case that I
originally submitted (all three available at
http://ctro.net/workbench/fxdom/test.htm).

The second test case breaks in a slightly different way than the first, but is
using a much simplified javascript.

The third test case builds upon test case 2 and adjusts the contents of the html
being inserted via the .innerHTML property -- it removes a <span> Element.
 Doing so seems to fix the issue.
Works for me in current trunk build. 
Please test this in the latest trunk (1.8a) build.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.