[Webkit-unassigned] [Bug 71843] New: [MutationObservers] Log some warning or error to the console if WebKitMutationObserver.observe is called with unknown dictionary keys

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 8 11:46:14 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=71843

           Summary: [MutationObservers] Log some warning or error to the
                    console if WebKitMutationObserver.observe is called
                    with unknown dictionary keys
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rafaelw at chromium.org
                CC: darin at apple.com, sam at webkit.org, ojan at chromium.org,
                    rniwa at webkit.org, adamk at chromium.org
            Blocks: 68729


I just spent an hour debugging and finally realized that my script was calling observer.observe(myNode, { childList: true, subtreee: true }) -- note "subtreee".

This style of DOM API (options bag) is somewhat new to DOM. From talking with Anne & Adam, we can make it a script error to use an unsupported dictionary key, but we can consider issuing a warning to the console.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list