Skip to content
  • weinig@apple.com's avatar
    WebCore: · 0ce8f4e3
    weinig@apple.com authored
    2009-06-22  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Mark Rowe.
    
            Add event handler attribute getter/setters to HTMLBodyElement
            as specified in HTML 5.
    
            - Removes erroneous inclusion of the onresize and onunload event
            handler attributes in Element and Document.
    
            * dom/Document.cpp:
            (WebCore::Document::getWindowAttributeEventListener):
            * dom/Document.h:
            * dom/Document.idl:
            * dom/Element.idl:
            * dom/Node.cpp:
            * dom/Node.h: onblur, onerror, onfocus, and onload all need to be declared
            virtual, since their behavior for HTMLBodyElement differs from the base
            implementation.
            * html/HTMLBodyElement.cpp:
            (WebCore::HTMLBodyElement::onblur):
            (WebCore::HTMLBodyElement::setOnblur):
            (WebCore::HTMLBodyElement::onerror):
            (WebCore::HTMLBodyElement::setOnerror):
            (WebCore::HTMLBodyElement::onfocus):
            (WebCore::HTMLBodyElement::setOnfocus):
            (WebCore::HTMLBodyElement::onload):
            (WebCore::HTMLBodyElement::setOnload):
            (WebCore::HTMLBodyElement::onbeforeunload):
            (WebCore::HTMLBodyElement::setOnbeforeunload):
            (WebCore::HTMLBodyElement::onmessage):
            (WebCore::HTMLBodyElement::setOnmessage):
            (WebCore::HTMLBodyElement::onoffline):
            (WebCore::HTMLBodyElement::setOnoffline):
            (WebCore::HTMLBodyElement::ononline):
            (WebCore::HTMLBodyElement::setOnonline):
            (WebCore::HTMLBodyElement::onresize):
            (WebCore::HTMLBodyElement::setOnresize):
            (WebCore::HTMLBodyElement::onstorage):
            (WebCore::HTMLBodyElement::setOnstorage):
            (WebCore::HTMLBodyElement::onunload):
            (WebCore::HTMLBodyElement::setOnunload):
            * html/HTMLBodyElement.h:
            * html/HTMLBodyElement.idl:
    
    LayoutTests:
    
    2009-06-22  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Mark Rowe.
    
            Add event handler attribute getter/setters to HTMLBodyElement
            as specified in HTML 5.
    
            * fast/dom/event-attribute-availability-expected.txt:
            * fast/dom/resources/event-attribute-availability.js:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0ce8f4e3