Skip to content
  • adele@apple.com's avatar
    WebCore: · aee865c5
    adele@apple.com authored
            Reviewed by Beth.
    
            Fix for <rdar://problem/5779718> focus() does not work for anchor elements with no content
    
            If an anchor has zero size, don't exclude it from being focusable from JS, just exclude it
            from being keyboard focusable (using the tab key).
    
            * html/HTMLAnchorElement.cpp:
            (WebCore::HTMLAnchorElement::isFocusable):
            (WebCore::HTMLAnchorElement::isKeyboardFocusable):
    
    LayoutTests:
    
            Reviewed by Beth.
    
            Test for <rdar://problem/5779718> focus() does not work for anchor elements with no content
    
            * fast/events/anchor-empty-focus-expected.txt: Added.
            * fast/events/anchor-empty-focus.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aee865c5