Bug 92239
| Summary: | REGRESSION(r112919): Can't operate textarea with scrollbar if it's hidden and shown | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kent Tamura <tkent> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Major | CC: | jchaffraix, rakeshchaitan |
| Priority: | P1 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Kent Tamura
Reported in http://code.google.com/p/chromium/issues/detail?id=137843
1. Open the following document.
Expected:
- Placeholder is shown in the textarea
- We can type into the textarea
Actual:
- Placeholder is not shown
- We can't type anything
----------------
<textarea id=ta1 placeholder=placeholder>
</textarea>
<script>
setTimeout(function() {
ta1.focus();
document.execCommand('inserttext', false, 'aaaaaaaaaaaaa\nbbbbbbbbbbb\ncccccccccc\ndddd\neeeeeee\nffffff\n');
var len = ta1.value.length;
ta1.selectionStart = len - 10;
ta1.selectionEnd = len - 10;
ta1.blur();
ta1.focus();
ta1.blur();
ta1.value = '';
ta1.style.display = 'none';
ta1.style.display = 'block';
ta1.focus();
}, 0);
</script>
----------------
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Kent Tamura
I confirmed reverting http://trac.webkit.org/changeset/112919 fixed the problem.
Kent Tamura
Confirmed this was fixed by http://trac.webkit.org/changeset/123637.
*** This bug has been marked as a duplicate of bug 89114 ***