WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
78548
textContent of a textarea doesn't get updated when value changes
https://bugs.webkit.org/show_bug.cgi?id=78548
Summary
textContent of a textarea doesn't get updated when value changes
Eric U.
Reported
2012-02-13 16:19:21 PST
Load any web page with a textarea. Using the web inspector: * print out textarea.textContent * set textarea.value to something different; note that the displayed textarea changes * print out textarea.textContent; note that it still has the original value Reproduced in Chrome 18 on Linux and Safari 5.1.1 on OSX 10.6.8. This is trivial to repro using the web inspector, but it's not inspector-related; I originally ran into it using a chrome extension to set value, then using JS in the page to read textContent.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2012-02-14 11:31:01 PST
This looks like correct behavior, changing "value" IDL attribute doesn't change any content attribute, and doesn't change child elements. Why is this a bug?
Eric U.
Comment 2
2012-02-14 11:37:17 PST
Sorry--it turns out not to be a bug. I discussed this with fishd and understand a bit better now. I should not expect the DOM to match my intuition ;'>.
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