<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: ARIA 1.1 &#64;aria-current"
   href="https://bugs.webkit.org/show_bug.cgi?id=146012#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: ARIA 1.1 &#64;aria-current"
   href="https://bugs.webkit.org/show_bug.cgi?id=146012">bug 146012</a>
              from <span class="vcard"><a class="email" href="mailto:cfleizach&#64;apple.com" title="chris fleizach &lt;cfleizach&#64;apple.com&gt;"> <span class="fn">chris fleizach</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=260310&amp;action=diff" name="attach_260310" title="patch">attachment 260310</a> <a href="attachment.cgi?id=260310&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=260310&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=260310&amp;action=review</a>

<span class="quote">&gt; Source/JavaScriptCore/ChangeLog:8
&gt; +        Updated inspector to support aria-current.</span >

we  should add a WebINspector layout test for these changes too

<span class="quote">&gt; Source/WebCore/accessibility/AccessibilityObject.cpp:1834
&gt; +    String currentStateValue = stripLeadingAndTrailingHTMLSpaces(getAttribute(aria_currentAttr));</span >

we should have a unit test within our test that confirms extra white space is removed correctly

thinks also like

&quot;   page &quot;

<span class="quote">&gt; Source/WebCore/accessibility/AccessibilityObject.h:439
&gt; +enum AccessibilityCurrentState { CurrentFalse, CurrentTrue, CurrentPage, CurrentStep, CurrentLocation, CurrentDate, CurrentTime };</span >

I think &quot;current&quot; by itself is too vague to be shortened on its own. Maybe we should either call this

ARIACurrent or
ContainerCurrentItem

<span class="quote">&gt; Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:2884
&gt; +        switch (currentState) {</span >

we can make this switch (m_object-&gt;currentState()) {

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js:352
&gt; +                if (accessibilityProperties.current === DOMAgent.AccessibilityPropertiesCurrent.True)</span >

seems like we should use a switch statement here

<span class="quote">&gt; Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js:353
&gt; +                    current = WebInspector.UIString(&quot;Yes&quot;);</span >

i think this should be &quot;True&quot; instead of Yes, because this is not a binary (yes/no) property but rather a multi-value thing where &quot;true&quot; is different from 'yes&quot;

<span class="quote">&gt; LayoutTests/ChangeLog:8
&gt; +        * accessibility/aria-current-expected.txt: Added.</span >

you probably need to add Skip to other TestExpectations and make bugs for Win and GTK to add support to query for aria-current</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>