<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[164332] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/164332">164332</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-02-18 16:45:07 -0800 (Tue, 18 Feb 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: AX: more properties: exists, required, and invalid (exists was previously combined with ignored)
https://bugs.webkit.org/show_bug.cgi?id=128504

Patch by James Craig &lt;jcraig@apple.com&gt; on 2014-02-18
Reviewed by Timothy Hatcher.

Source/WebCore:

Additions to the accessibility node inspector: exists, required, invalid.

Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
* inspector/protocol/DOM.json:

Source/WebInspectorUI:

Additions to the accessibility node inspector: exists, required, invalid.

* Localizations/en.lproj/localizedStrings.js:
* UserInterface/DOMNode.js:
* UserInterface/DOMNodeDetailsSidebarPanel.js:

LayoutTests:

New files test the inspector protocol for DOM.getAccessibilityPropertiesForNode

* inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt: Added.
* inspector-protocol/dom/getAccessibilityPropertiesForNode.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorprotocolDOMjson">trunk/Source/WebCore/inspector/protocol/DOM.json</a></li>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs">trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceDOMNodejs">trunk/Source/WebInspectorUI/UserInterface/DOMNode.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceDOMNodeDetailsSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/DOMNodeDetailsSidebarPanel.js</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodeexpectedtxt">trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt</a></li>
<li><a href="#trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodehtml">trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/LayoutTests/ChangeLog        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2014-02-18  James Craig  &lt;jcraig@apple.com&gt;
+
+        Web Inspector: AX: more properties: exists, required, and invalid (exists was previously combined with ignored)
+        https://bugs.webkit.org/show_bug.cgi?id=128504
+
+        Reviewed by Timothy Hatcher.
+
+        New files test the inspector protocol for DOM.getAccessibilityPropertiesForNode
+
+        * inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt: Added.
+        * inspector-protocol/dom/getAccessibilityPropertiesForNode.html: Added.
+
</ins><span class="cx"> 2014-02-18  Viatcheslav Ostapenko  &lt;sl.ostapenko@samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Bottom/right sticky positioning don't correctly handle scroll containers with padding
</span></span></pre></div>
<a id="trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt (0 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt                                (rev 0)
+++ trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode-expected.txt        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -0,0 +1,94 @@
</span><ins>+Checking Web Inspector protocol for the Accessibility Node Inspector.
+
+           
+Total elements to be tested: 15.
+
+&lt;img src=&quot;./404.gif&quot; alt=&quot;x&quot;&gt;
+    exists: true
+    label: 
+    role: img
+
+&lt;img src=&quot;./404.gif&quot; alt=&quot;&quot;&gt;
+    exists: true
+    label: 
+    role: img
+    ignored: true
+
+&lt;img src=&quot;./404.gif&quot;&gt;
+    exists: true
+    label: 
+    role: img
+    ignored: true
+
+&lt;input aria-invalid=&quot;fake-value-will-eval-to-true&quot;&gt;
+    exists: true
+    label: 
+    role: 
+    invalid: true
+    required: false
+
+&lt;input aria-invalid=&quot;spelling&quot;&gt;
+    exists: true
+    label: 
+    role: 
+    invalid: spelling
+    required: false
+
+&lt;input aria-required=&quot;true&quot;&gt;
+    exists: true
+    label: 
+    role: 
+    required: true
+
+&lt;input required=&quot;&quot;&gt;
+    exists: true
+    label: 
+    role: 
+    required: true
+
+&lt;input type=&quot;button&quot;&gt;
+    exists: true
+    label: 
+    role: button
+
+&lt;button&gt;&lt;/button&gt;
+    exists: true
+    label: 
+    role: button
+
+&lt;div role=&quot;button&quot; tabindex=&quot;0&quot;&gt;&lt;/div&gt;
+    exists: true
+    label: 
+    role: button
+
+&lt;span&gt;&lt;/span&gt;
+    exists: true
+    label: 
+    role: 
+    ignored: true
+
+&lt;div&gt;&lt;/div&gt;
+    exists: true
+    label: 
+    role: 
+    ignored: true
+
+&lt;div role=&quot;presentation&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
+    exists: true
+    label: 
+    role: presentation
+    ignored: true
+
+&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
+    exists: true
+    label: 
+    role: 
+    ignored: true
+
+&lt;script&gt;&lt;/script&gt;
+    exists: false
+    label: 
+    role: 
+
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsinspectorprotocoldomgetAccessibilityPropertiesForNodehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html (0 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html                                (rev 0)
+++ trunk/LayoutTests/inspector-protocol/dom/getAccessibilityPropertiesForNode.html        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -0,0 +1,90 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+&lt;script type=&quot;text/javascript&quot; src=&quot;../../http/tests/inspector-protocol/resources/protocol-test.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body onLoad=&quot;runTest()&quot;&gt;
+
+&lt;p&gt;Checking Web Inspector protocol for the Accessibility Node Inspector.&lt;/p&gt;
+
+&lt;!-- This one is never rendered, so &quot;exists&quot; should return false. --&gt;
+&lt;script class=&quot;ex&quot;&gt;&lt;/script&gt;
+
+&lt;!-- The rest are rendered with various property differences. --&gt;
+&lt;div class=&quot;ex&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
+&lt;div class=&quot;ex&quot; role=&quot;presentation&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;
+&lt;div class=&quot;ex&quot;&gt;&lt;/div&gt;
+&lt;span class=&quot;ex&quot;&gt;&lt;/span&gt;
+
+&lt;div class=&quot;ex&quot; role=&quot;button&quot; tabindex=&quot;0&quot;&gt;&lt;/div&gt;
+&lt;button class=&quot;ex&quot;&gt;&lt;/button&gt;
+&lt;input class=&quot;ex&quot; type=&quot;button&quot;&gt;
+
+&lt;input class=&quot;ex&quot; required&gt;
+&lt;input class=&quot;ex&quot; aria-required=&quot;true&quot;&gt;
+&lt;input class=&quot;ex&quot; aria-invalid=&quot;spelling&quot;&gt;
+&lt;input class=&quot;ex&quot; aria-invalid=&quot;fake-value-will-eval-to-true&quot;&gt;
+
+&lt;img class=&quot;ex&quot; src=&quot;./404.gif&quot;&gt;
+&lt;img class=&quot;ex&quot; src=&quot;./404.gif&quot; alt=&quot;&quot;&gt;
+&lt;img class=&quot;ex&quot; src=&quot;./404.gif&quot; alt=&quot;x&quot;&gt;
+
+&lt;script type=&quot;text/javascript&quot;&gt;
+
+function $(selector) {
+    return document.querySelectorAll(selector);
+}
+function cleanup() {
+    var examples = $(&quot;.ex&quot;);
+    for (el in examples)
+        el.style.display = &quot;none&quot;;
+}
+
+function test() {
+
+    var examples = [];
+
+    function loop() {
+        if (examples.length) {
+            InspectorTest.sendCommand(&quot;DOM.getOuterHTML&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotOuterHTML);
+        } else {
+            InspectorTest.log(&quot;\n&quot;);
+            InspectorTest.sendCommand(&quot;Runtime.evaluate&quot;, {&quot;expression&quot;: &quot;cleanup()&quot;}, function(){
+                InspectorTest.completeTest();
+            });
+        }
+    };
+
+    function onGotDocument(response) {
+        InspectorTest.checkForError(response);
+        InspectorTest.sendCommand(&quot;DOM.querySelectorAll&quot;, {&quot;nodeId&quot;: response.result.root.nodeId, &quot;selector&quot;: &quot;.ex&quot;}, onQuerySelectorAll);
+    }
+
+    function onQuerySelectorAll(response) {
+        InspectorTest.checkForError(response);
+        examples = response.result.nodeIds;
+        InspectorTest.log(&quot;Total elements to be tested: &quot; + examples.length + &quot;.&quot;);
+        loop();
+    }
+
+    function onGotOuterHTML(response) {
+        InspectorTest.checkForError(response);
+        InspectorTest.log(&quot;\n&quot; + response.result.outerHTML.replace(&quot; class=\&quot;ex\&quot;&quot;, &quot;&quot;));
+        InspectorTest.sendCommand(&quot;DOM.getAccessibilityPropertiesForNode&quot;, {&quot;nodeId&quot;: examples[examples.length-1]}, onGotAXProps);
+    }
+
+    function onGotAXProps(response) {
+        InspectorTest.checkForError(response);
+        for (prop in response.result.properties) {
+            if (prop !== &quot;nodeId&quot;)
+                InspectorTest.log(&quot;    &quot; + prop + &quot;: &quot; + response.result.properties[prop]);
+        }
+        examples.pop();
+        loop();
+    }
+
+    InspectorTest.sendCommand(&quot;DOM.getDocument&quot;, {}, onGotDocument);
+
+}
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebCore/ChangeLog        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2014-02-18  James Craig  &lt;jcraig@apple.com&gt;
+
+        Web Inspector: AX: more properties: exists, required, and invalid (exists was previously combined with ignored)
+        https://bugs.webkit.org/show_bug.cgi?id=128504
+
+        Reviewed by Timothy Hatcher.
+
+        Additions to the accessibility node inspector: exists, required, invalid.
+
+        Test: inspector-protocol/dom/getAccessibilityPropertiesForNode.html
+
+        * inspector/InspectorDOMAgent.cpp:
+        (WebCore::InspectorDOMAgent::buildObjectForAccessibilityProperties):
+        * inspector/protocol/DOM.json:
+
</ins><span class="cx"> 2014-02-18  Ryosuke Niwa  &lt;rniwa@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Commit the code change supposed to happen in r164320.
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -1414,28 +1414,41 @@
</span><span class="cx">     if (!WebCore::AXObjectCache::accessibilityEnabled())
</span><span class="cx">         WebCore::AXObjectCache::enableAccessibility();
</span><span class="cx"> 
</span><ins>+    bool exists = false;
</ins><span class="cx">     bool ignored = true;
</span><del>-
-    // Computed ARIA Role
</del><ins>+    String invalid = &quot;false&quot;; // String values: true, false, spelling, grammar, etc.
+    String label; // FIXME: Waiting on http://webkit.org/b/121134
+    bool required = false;
</ins><span class="cx">     String role;
</span><ins>+    bool supportsRequired = false;
</ins><span class="cx"> 
</span><del>-    // Computed Label
-    // FIXME: Waiting on http://webkit.org/b/121134
-    String label;
-
</del><span class="cx">     if (AXObjectCache* axObjectCache = node-&gt;document().axObjectCache()) {
</span><span class="cx">         if (AccessibilityObject* axObject = axObjectCache-&gt;getOrCreate(node)) {
</span><ins>+            exists = true;
</ins><span class="cx">             ignored = axObject-&gt;accessibilityIsIgnored();
</span><ins>+            invalid = axObject-&gt;invalidStatus();
</ins><span class="cx">             role = axObject-&gt;computedRoleString();
</span><ins>+            supportsRequired = axObject-&gt;supportsRequiredAttribute();
+            if (supportsRequired)
+                required = axObject-&gt;isRequired();
</ins><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     RefPtr&lt;Inspector::TypeBuilder::DOM::AccessibilityProperties&gt; value = Inspector::TypeBuilder::DOM::AccessibilityProperties::create()
</span><del>-        .setIgnored(ignored)
</del><ins>+        .setExists(exists)
+        .setLabel(label)
</ins><span class="cx">         .setRole(role)
</span><del>-        .setLabel(label)
</del><span class="cx">         .setNodeId(pushNodePathToFrontend(node));
</span><span class="cx"> 
</span><ins>+    if (exists) {
+        if (ignored)
+            value-&gt;setIgnored(ignored);
+        if (invalid != &quot;false&quot;)
+            value-&gt;setInvalid(invalid);
+        if (supportsRequired)
+            value-&gt;setRequired(required);
+    }
+
</ins><span class="cx">     return value.release();
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorprotocolDOMjson"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/protocol/DOM.json (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/protocol/DOM.json        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebCore/inspector/protocol/DOM.json        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -59,9 +59,12 @@
</span><span class="cx">             &quot;description&quot;: &quot;A structure holding accessibility properties.&quot;,
</span><span class="cx">             &quot;type&quot;: &quot;object&quot;,
</span><span class="cx">             &quot;properties&quot;: [
</span><del>-                { &quot;name&quot;: &quot;ignored&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;description&quot;: &quot;Returns whether the accessibility of the DOM node is ignored, whether heuristically or explicitly.&quot; },
</del><ins>+                { &quot;name&quot;: &quot;exists&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;description&quot;: &quot;Returns whether there is an existing AX object for the DOM node. If this is false, all the other properties will be default values.&quot; },
+                { &quot;name&quot;: &quot;ignored&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns whether the accessibility of the associated AX object node is ignored, whether heuristically or explicitly.&quot; },
+                { &quot;name&quot;: &quot;invalid&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns the invalid status for form fields: true, false, grammar, spelling.&quot; },
+                { &quot;name&quot;: &quot;label&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Computed label value for the node, sometimes calculated by referencing other nodes.&quot; },
+                { &quot;name&quot;: &quot;required&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Returns whether the element is required or not required.&quot; },
</ins><span class="cx">                 { &quot;name&quot;: &quot;role&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Computed value for first recognized role token, default role per element, or overridden role.&quot; },
</span><del>-                { &quot;name&quot;: &quot;label&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Computed label value for the node, sometimes calculated by referencing other nodes.&quot; },
</del><span class="cx">                 { &quot;name&quot;: &quot;nodeId&quot;, &quot;$ref&quot;: &quot;NodeId&quot;, &quot;description&quot;: &quot;Target &lt;code&gt;DOMNode&lt;/code&gt; id.&quot; }
</span><span class="cx">             ]
</span><span class="cx">         },
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebInspectorUI/ChangeLog        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2014-02-18  James Craig  &lt;jcraig@apple.com&gt;
+
+        Web Inspector: AX: more properties: exists, required, and invalid (exists was previously combined with ignored)
+        https://bugs.webkit.org/show_bug.cgi?id=128504
+
+        Reviewed by Timothy Hatcher.
+
+        Additions to the accessibility node inspector: exists, required, invalid.
+
+        * Localizations/en.lproj/localizedStrings.js:
+        * UserInterface/DOMNode.js:
+        * UserInterface/DOMNodeDetailsSidebarPanel.js:
+
</ins><span class="cx"> 2014-02-18  Antoine Quint  &lt;graouts@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: editing a color in the Styles sidebar using the color picker only works once for a given color
</span></span></pre></div>
<a id="trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -206,11 +206,13 @@
</span><span class="cx"> localizedStrings[&quot;Icon and Text (Horizontal)&quot;] = &quot;Icon and Text (Horizontal)&quot;;
</span><span class="cx"> localizedStrings[&quot;Icon and Text (Vertical)&quot;] = &quot;Icon and Text (Vertical)&quot;;
</span><span class="cx"> localizedStrings[&quot;Identity&quot;] = &quot;Identity&quot;;
</span><ins>+localizedStrings[&quot;Ignored&quot;] = &quot;Ignored&quot;;
</ins><span class="cx"> localizedStrings[&quot;Image&quot;] = &quot;Image&quot;;
</span><span class="cx"> localizedStrings[&quot;Image Size&quot;] = &quot;Image Size&quot;;
</span><span class="cx"> localizedStrings[&quot;Images&quot;] = &quot;Images&quot;;
</span><span class="cx"> localizedStrings[&quot;Inherited From: &quot;] = &quot;Inherited From: &quot;;
</span><span class="cx"> localizedStrings[&quot;Initiator&quot;] = &quot;Initiator&quot;;
</span><ins>+localizedStrings[&quot;Invalid&quot;] = &quot;Invalid&quot;;
</ins><span class="cx"> localizedStrings[&quot;Input: &quot;] = &quot;Input: &quot;;
</span><span class="cx"> localizedStrings[&quot;Inspect&quot;] = &quot;Inspect&quot;;
</span><span class="cx"> localizedStrings[&quot;Invert call tree&quot;] = &quot;Invert call tree&quot;;
</span><span class="lines">@@ -311,6 +313,7 @@
</span><span class="cx"> localizedStrings[&quot;Request &amp; Response&quot;] = &quot;Request &amp; Response&quot;;
</span><span class="cx"> localizedStrings[&quot;Request Data&quot;] = &quot;Request Data&quot;;
</span><span class="cx"> localizedStrings[&quot;Request Headers&quot;] = &quot;Request Headers&quot;;
</span><ins>+localizedStrings[&quot;Required&quot;] = &quot;Required&quot;;
</ins><span class="cx"> localizedStrings[&quot;Resource&quot;] = &quot;Resource&quot;;
</span><span class="cx"> localizedStrings[&quot;Resource Type&quot;] = &quot;Resource Type&quot;;
</span><span class="cx"> localizedStrings[&quot;Resources&quot;] = &quot;Resources&quot;;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceDOMNodejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/DOMNode.js (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/DOMNode.js        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebInspectorUI/UserInterface/DOMNode.js        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -445,11 +445,14 @@
</span><span class="cx">     {
</span><span class="cx">         function accessibilityPropertiesCallback(error, accessibilityProperties)
</span><span class="cx">         {
</span><del>-            if (!error &amp;&amp; callback) {
</del><ins>+            if (!error &amp;&amp; callback &amp;&amp; accessibilityProperties) {
</ins><span class="cx">                 callback({
</span><ins>+                    exists: accessibilityProperties.exists,
</ins><span class="cx">                     ignored: accessibilityProperties.ignored,
</span><del>-                    role: accessibilityProperties.role,
-                    label: accessibilityProperties.label
</del><ins>+                    invalid: accessibilityProperties.invalid,
+                    label: accessibilityProperties.label,
+                    required: accessibilityProperties.required,
+                    role: accessibilityProperties.role
</ins><span class="cx">                 });
</span><span class="cx">             }
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceDOMNodeDetailsSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/DOMNodeDetailsSidebarPanel.js (164331 => 164332)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/DOMNodeDetailsSidebarPanel.js        2014-02-19 00:43:35 UTC (rev 164331)
+++ trunk/Source/WebInspectorUI/UserInterface/DOMNodeDetailsSidebarPanel.js        2014-02-19 00:45:07 UTC (rev 164332)
</span><span class="lines">@@ -52,8 +52,11 @@
</span><span class="cx">     var eventListenersSection = new WebInspector.DetailsSection(&quot;dom-node-event-listeners&quot;, WebInspector.UIString(&quot;Event Listeners&quot;), [this._eventListenersSectionGroup]);    
</span><span class="cx"> 
</span><span class="cx">     this._accessibilityEmptyRow = new WebInspector.DetailsSectionRow(WebInspector.UIString(&quot;No Accessibility Information&quot;));
</span><del>-    this._accessibilityNodeComputedLabelRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Label&quot;));
-    this._accessibilityNodeComputedRoleRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Role&quot;));
</del><ins>+    this._accessibilityNodeIgnoredRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Ignored&quot;));
+    this._accessibilityNodeInvalidRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Invalid&quot;));
+    this._accessibilityNodeLabelRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Label&quot;));
+    this._accessibilityNodeRequiredRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Required&quot;));
+    this._accessibilityNodeRoleRow = new WebInspector.DetailsSectionSimpleRow(WebInspector.UIString(&quot;Role&quot;));
</ins><span class="cx">     
</span><span class="cx">     this._accessibilityGroup = new WebInspector.DetailsSectionGroup([this._accessibilityEmptyRow]);
</span><span class="cx">     var accessibilitySection = new WebInspector.DetailsSection(&quot;dom-node-accessibility&quot;, WebInspector.UIString(&quot;Accessibility&quot;), [this._accessibilityGroup]);    
</span><span class="lines">@@ -243,9 +246,25 @@
</span><span class="cx">             if (this.domNode !== domNode)
</span><span class="cx">                 return;
</span><span class="cx"> 
</span><del>-            if (accessibilityProperties &amp;&amp; !accessibilityProperties.ignored) {
</del><ins>+            if (accessibilityProperties &amp;&amp; accessibilityProperties.exists) {
+                
+                var ignored = accessibilityProperties.ignored ? WebInspector.UIString(&quot;Yes&quot;) : &quot;&quot;;
+                var invalid = accessibilityProperties.invalid ? accessibilityProperties.invalid : &quot;&quot;;
+
+                // FIXME: label will always come back as empty. Blocked by http://webkit.org/b/121134
+                var label = accessibilityProperties.label;
+                if (label &amp;&amp; label !== domNode.getAttribute(&quot;aria-label&quot;))
+                    label = WebInspector.UIString(&quot;%s (computed)&quot;).format(label);
+
+                var required = &quot;&quot;;
+                if (accessibilityProperties.required !== undefined) {
+                    if (accessibilityProperties.required)
+                        required = WebInspector.UIString(&quot;Yes&quot;);
+                    else
+                        required = WebInspector.UIString(&quot;No&quot;);
+                }
+
</ins><span class="cx">                 var role = accessibilityProperties.role;
</span><del>-
</del><span class="cx">                 if (role === &quot;&quot; || role === &quot;unknown&quot;)
</span><span class="cx">                     role = WebInspector.UIString(&quot;No exact ARIA role match.&quot;);
</span><span class="cx">                 else if (role) {
</span><span class="lines">@@ -255,16 +274,22 @@
</span><span class="cx">                         role = WebInspector.UIString(&quot;%s (computed)&quot;).format(role);
</span><span class="cx">                 }
</span><span class="cx">                 
</span><del>-                // FIXME: label will always come back as empty. Blocked by http://webkit.org/b/121134
-                var label = accessibilityProperties.label;
-                if (label &amp;&amp; label !== domNode.getAttribute(&quot;aria-label&quot;))
-                    label = WebInspector.UIString(&quot;%s (computed)&quot;).format(label);
</del><ins>+                this._accessibilityNodeIgnoredRow.value = ignored;
+                this._accessibilityNodeInvalidRow.value = invalid;
+                this._accessibilityNodeLabelRow.value = label;
+                this._accessibilityNodeRequiredRow.value = required;
+                this._accessibilityNodeRoleRow.value = role;
</ins><span class="cx"> 
</span><del>-                this._accessibilityNodeComputedLabelRow.value = label;
-                this._accessibilityNodeComputedRoleRow.value = role;
</del><ins>+                this._accessibilityGroup.rows = [
+                    this._accessibilityNodeIgnoredRow,
+                    this._accessibilityNodeRoleRow,
+                    this._accessibilityNodeLabelRow,
+                    this._accessibilityNodeRequiredRow,
+                    this._accessibilityNodeInvalidRow
+                ];
</ins><span class="cx"> 
</span><del>-                this._accessibilityGroup.rows = [this._accessibilityNodeComputedLabelRow, this._accessibilityNodeComputedRoleRow];
</del><span class="cx">                 this._accessibilityEmptyRow.hideEmptyMessage();
</span><ins>+
</ins><span class="cx">             } else {
</span><span class="cx">                 this._accessibilityGroup.rows = [this._accessibilityEmptyRow];
</span><span class="cx">                 this._accessibilityEmptyRow.showEmptyMessage();
</span></span></pre>
</div>
</div>

</body>
</html>