[Webkit-unassigned] [Bug 16748] New: DOMRange.cloneContents does not work (Acid3 bug)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 5 14:12:13 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=16748
Summary: DOMRange.cloneContents does not work (Acid3 bug)
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
DOMRange.cloneContents does not work (Acid3 bug)
// DOM Range
function () {
// test 11: basic ranges tests
var r = document.createRange();
assert(r, "range not created");
assert(r.collapsed, "new range wasn't collapsed");
assert(r.commonAncestorContainer == document, "new range's common
ancestor wasn't the document");
assert(r.startContainer == document, "new range's start container wasn't
the document");
assert(r.startOffset == 0, "new range's start offset wasn't zero");
assert(r.endContainer == document, "new range's end container wasn't the
document");
assert(r.endOffset == 0, "new range's end offset wasn't zero");
assert(r.cloneContents(), "cloneContents() didn't return an object");
assert(r.cloneContents().childNodes.length == 0, "nothing cloned was more
than nothing");
assert(r.cloneRange().toString() == "", "nothing cloned stringifed to
more than nothing");
r.collapse(true); // no effect
assert(r.compareBoundaryPoints(r.START_TO_END, r.cloneRange()) == 0,
"starting boundary point of range wasn't the same as the end boundary point of
the clone range");
r.deleteContents(); // no effect
assert(r.extractContents().childNodes.length == 0, "nothing removed was
more than nothing");
r.insertNode(document.createComment("commented inserted to test
ranges"));
assert(!r.collapsed, "range with inserted comment isn't collapsed");
assert(r.commonAncestorContainer == document, "range with inserted
comment has common ancestor that isn't the document");
assert(r.startContainer == document, "range with inserted comment has
start container that isn't the document");
assert(r.startOffset == 0, "range with inserted comment has start offset
that isn't zero");
assert(r.endContainer == document, "range with inserted comment has end
container that isn't the document");
assert(r.endOffset == 1, "range with inserted comment has end offset that
isn't after the comment");
return 1;
},
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list