| Summary: | script.text should behave like script.textContent on setting | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
| Component: | DOM | Assignee: | Andreas Kling <kling> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | cdumez, commit-queue, esprehn+autocc, gyuyoung.kim, kling, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Ryosuke Niwa
2015-09-04 16:52:37 PDT
Created attachment 287204 [details]
Patch
Comment on attachment 287204 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287204&action=review r=me with comment. > Source/WebCore/html/HTMLScriptElement.cpp:85 > + setTextContent(value, IGNORE_EXCEPTION); I believe this cannot actually throw. If this is the case, then we should use ASSERT_NOT_EXCEPTION, not IGNORE_EXCEPTION. If it can actually throw, then we should use [SetterRaisesException] on the text attribute and relay the exception to the caller. Comment on attachment 287204 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287204&action=review >> Source/WebCore/html/HTMLScriptElement.cpp:85 >> + setTextContent(value, IGNORE_EXCEPTION); > > I believe this cannot actually throw. If this is the case, then we should use ASSERT_NOT_EXCEPTION, not IGNORE_EXCEPTION. If it can actually throw, then we should use [SetterRaisesException] on the text attribute and relay the exception to the caller. Hmm. You are probably right about this. I suspect the same is also true for HTMLAnchorElement.text and HTMLTitleElement.text Created attachment 287205 [details]
Patch for landing
Comment on attachment 287205 [details] Patch for landing Clearing flags on attachment: 287205 Committed r205079: <http://trac.webkit.org/changeset/205079> All reviewed patches have been landed. Closing bug. |