[Webkit-unassigned] [Bug 16749] New: DOMRange.surroundContents throws wrong exception (Acid3 bug)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 5 14:15:14 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16749

           Summary: DOMRange.surroundContents throws wrong exception (Acid3
                    bug)
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org


DOMRange.surroundContents throws wrong exception (Acid3 bug)

This one should be easy to fix. :)

    function () {
      // test 15: Ranges and Comments
      var doc = getTestDocument();
      var c1 = doc.createComment("aaaaa");
      doc.appendChild(c1);
      var c2 = doc.createComment("bbbbb");
      doc.appendChild(c2);
      var r = doc.createRange();
      r.setStart(c1, 2);
      r.setEnd(c2, 3);
      var msg = 'wrong exception raised';
      try {
        r.surroundContents(doc.createElement('a'));
        msg = 'no exception raised';
      } catch (e) {
        if ('code' in e)
          msg += '; code = ' + e.code;
        if (e.code == e.BAD_BOUNDARYPOINTS_ERR)
          msg = '';
      }
      assert(msg == '', msg);
      assert(r.toString() == "", "comments returned text");
      return 1;
    },
    function () {
      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