Closed Bug 656007 Opened 13 years ago Closed 13 years ago

Text input fields erroneously rendered with selected text after certain DOM operations

Categories

(Core :: Web Painting, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 637671

People

(Reporter: T.Rosenau, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Obviously, re-rendering of input fields that had previously been selected causes them to appear selected even though they should not be.

Reproducible: Always

Steps to Reproduce:
1. Create an HTML document with 2 or more text input fields
2. With JS, call select() on each input field
3. Change the display property of the first input fields' style properties.
   - Either, set display = 'block', or
   - set display = 'none', and after a timeout, display = 'inline'

Actual Results:  
The first and second input field's contents are selected

Expected Results:  
Only the second input field's contents are selected
Attached file Testcase
May be related to Bug 297134 or Bug 589624
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: