Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Textarea placeholder text does not disappear when inserting text with…
…out a user gesture Textarea placeholder text does not disappear when inserting text without a user gesture https://bugs.webkit.org/show_bug.cgi?id=248526 Reviewed by Aditya Keerthi. This patch is to align Webkit with Gecko / Firefox and Blink / Chromium. Merge - https://src.chromium.org/viewvc/blink?view=revision&revision=195023 This patch is adding add condition for "subtreeHasChanged" function to update placeholder visibility after the text is insert via execCommand / JavaScript without user interaction. * Source/WebCore/html/HTMLTextareaElement.cpp: (HTMLTextAreaElement::subtreeHasChanged): Add logic to update Placeholder Visibility * LayoutTests/fast/forms/textarea/textarea-placeholder-visisbility-3.html: Add Test Case * LayoutTests/fast/forms/textarea/textarea-placeholder-visisbility-3-expected.html: Add Test Case Expectation Canonical link: https://commits.webkit.org/257210@main
- Loading branch information