[Bug 10897] New: In general, synthetic events dispatched from script do not trigger default actions - click is the exception for compatibility

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10897

           Summary: In general, synthetic events dispatched from script do
                    not trigger default actions - click is the exception
                    for compatibility
           Product: HTML WG
           Version: unspecified
          Platform: All
               URL: http://dev.w3.org/html5/spec/content-models.html#inter
                    active-content-0
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: adrianba@microsoft.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


The spec says: "Note: The above doesn't happen for arbitrary synthetic events
dispatched by author script. However, the click() method can be used to make it
happen programmatically."

However, for compatibility with web content we had to make this work with click
as an exception. Other synthetic events do not trigger default action but click
does.

See also the test case at:
http://www.hixie.ch/tests/adhoc/dom/events/click/002.html

Without handling the default action from the synthetic click event, the
checkboxes do not get checked.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 30 September 2010 20:20:30 UTC