Bug 78548
| Summary: | textContent of a textarea doesn't get updated when value changes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eric U. <ericu> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Eric U.
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
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.
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 ;'>.