Closed
Bug 453521
Opened 16 years ago
Closed 16 years ago
range.extractContents should return empty document fragment if range is collapsed
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file)
4.00 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
|
Details | Diff | Splinter Review |
Currently we return null.
Patch coming. With the patches for bug 302775 and bug 42976, ACID3 test7 is fixed.
Assignee | ||
Comment 1•16 years ago
|
||
Assignee: nobody → Olli.Pettay
Status: NEW → ASSIGNED
Attachment #336712 -
Flags: superreview?(jonas)
Attachment #336712 -
Flags: review?(jonas)
Comment on attachment 336712 [details] [diff] [review]
proposed patch
>- return CollapseRangeAfterDelete(this);
>+ rv = CollapseRangeAfterDelete(this);
>+ if (NS_SUCCEEDED(rv) && aFragment) {
>+ NS_ADDREF(*aFragment = retval);
>+ }
>+ return rv;
The following is somewhat easier to read and would translate better if we ever switch to real exceptions:
rv = CollapseRangeAfterDelete(this);
NS_ENSURE_SUCCESS(rv, rv);
if (aFragment) {
NS_ADDREF(*aFragment = retval);
}
return NS_OK;
Up to you
Attachment #336712 -
Flags: superreview?(jonas)
Attachment #336712 -
Flags: superreview+
Attachment #336712 -
Flags: review?(jonas)
Attachment #336712 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•