Closed
Bug 209489
Opened 21 years ago
Closed 21 years ago
form input/textarea cursors are initially positioned improperly
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 131698
People
(Reporter: matt, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
148 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 When "input" and "textarea" tags are placed in a "p" tag that uses the ":first-line" css selector, giving the form element focus will cause the text cursor to be placed improperly. If any text is typed, it is displayed in the proper location, and even deleting the text causes the cursor to remain in the correct place. For an example, see http://igda-phx.org/submit.php?section=link Note that form controls in paragraphs not using the ":first-line" selector, do not suffer from this bug, such as those in the page at http://igda-phx.org/calendar.php Reproducible: Always Steps to Reproduce: 1. Create a page which contains a form 2. In a stylesheet, add a selector for p:first-line. Whether or not the selector actually changes any text display properties is irrelevant. 3. Add a "p" tag that will be selected by the aforementioned selector. In it place some text, such as might be used for a label for a form element. 4. Place an "input" or "textarea" tag following the text but still within the "p" tag that contains the text. 5. Close the "p" tag Actual Results: Upon initially giving the form element focus, the text cursor is placed at the beginning of the parent text element Expected Results: Upon giving the form element focus, the text cursor should be placed at the beginning of the form element. This bug has been verified as occuring with the newest release for both Windows and i686 Linux. I have attached an absolute -minimum- example, but the bug still occurs even if you do something such as insert a line break ("br" tag) between the text in the "p" tag and the form element.
Reporter | ||
Comment 1•21 years ago
|
||
This is the minimal (but still sytactically correct) html code needed to reproduce the bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•