WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
275027
`value` attribute on HTMLTextAreaElement should treat `null` as emptyString
https://bugs.webkit.org/show_bug.cgi?id=275027
Summary
`value` attribute on HTMLTextAreaElement should treat `null` as emptyString
Ahmad Saleem
Reported
2024-06-02 07:01:47 PDT
Hi Team, While going through Blink's patches, I came across another potential merge: Blink Commit:
https://chromium-review.googlesource.com/c/chromium/src/+/1230173
WebKit Source:
https://searchfox.org/wubkat/rev/4eb5890b06fef636c92e25930b303010b12184f6/Source/WebCore/html/HTMLTextAreaElement.cpp#365
auto normalizedValue = newValue.isNull() ? emptyString() : makeStringBySimplifyingNewLines(newValue); Changed to: auto normalizedValue = makeStringBySimplifyingNewLines(newValue); Just wanted to raise to get input. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-06-09 07:02:13 PDT
<
rdar://problem/129470548
>
Anne van Kesteren
Comment 2
2024-06-13 07:32:31 PDT
Our IDL appears correct and this branch is at worst redundant, but it's a bit unclear given that ::setValueCommon is not just called from ::setValue. You'd have to figure out if the other callers of ::setValueCommon need this or not.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug