[Webkit-unassigned] [Bug 114643] WebKit does not expose HTML5 drag/drop status

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 26 21:42:27 PST 2015


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

--- Comment #10 from Don <donshreds at yahoo.com> ---
I also dug around the source code a little bit. 

I'm still trying to understand how it all works, but it seems that there are AccessibilityObjects that 'shadow' the original HTML Objects, which makes sense given a lot of what Accessibility is all about is exposing a 'subtree' of accessible elements from the original HTML DOM tree. 

In particular, I found a few methods that seem like they may be relevant:
These are methods on the AccessibilityRenderObject, defined in the file webkit/Source/WebCore/accessibility/AccessibilityRenderObject.{h,cpp}

Here, the AccessibilityRenderObject declares its support for ARIA Dropping and Dragging via some ARIA attributes per the methods below. Conceivably these are the specific methods James indicated need to be modified to cater for the HTML 5 "draggable" attribute, etc.

bool AccessibilityRenderObject::supportsARIADropping() const
{
    const AtomicString& dropEffect = getAttribute(aria_dropeffectAttr);
    return !dropEffect.isEmpty();
}

bool AccessibilityRenderObject::supportsARIADragging() const
{
    const AtomicString& grabbed = getAttribute(aria_grabbedAttr);
    return equalIgnoringCase(grabbed, "true") || equalIgnoringCase(grabbed, "false");
}

bool AccessibilityRenderObject::isARIAGrabbed()
{
    return elementAttributeValue(aria_grabbedAttr);
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150227/f8f3baea/attachment-0002.html>


More information about the webkit-unassigned mailing list