<!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>[182509] 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/182509">182509</a></dd>
<dt>Author</dt> <dd>benjamin@webkit.org</dd>
<dt>Date</dt> <dd>2015-04-07 16:42:16 -0700 (Tue, 07 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Get the features.json files ready for open contributions
https://bugs.webkit.org/show_bug.cgi?id=143436

Reviewed by Darin Adler.

Source/JavaScriptCore:

* features.json:

Source/WebCore:

* features.json:

Tools:

* Scripts/webkitpy/style/checkers/jsonchecker.py:
(JSONFeaturesChecker.check):
Extend the syntax checking a bit, but leave everything non-mandatory
very loose until we figure what fields are important.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCorefeaturesjson">trunk/Source/JavaScriptCore/features.json</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorefeaturesjson">trunk/Source/WebCore/features.json</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsScriptswebkitpystylecheckersjsoncheckerpy">trunk/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (182508 => 182509)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2015-04-07 23:37:13 UTC (rev 182508)
+++ trunk/Source/JavaScriptCore/ChangeLog        2015-04-07 23:42:16 UTC (rev 182509)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2015-04-07  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Get the features.json files ready for open contributions
+        https://bugs.webkit.org/show_bug.cgi?id=143436
+
+        Reviewed by Darin Adler.
+
+        * features.json:
+
</ins><span class="cx"> 2015-04-07  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Constant folding of typed array properties should be handled by AI rather than strength reduction
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorefeaturesjson"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/features.json (182508 => 182509)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/features.json        2015-04-07 23:37:13 UTC (rev 182508)
+++ trunk/Source/JavaScriptCore/features.json        2015-04-07 23:42:16 UTC (rev 182509)
</span><span class="lines">@@ -7,6 +7,7 @@
</span><span class="cx">     },
</span><span class="cx">     {
</span><span class="cx">         &quot;name&quot;: &quot;ES7&quot;,
</span><ins>+        &quot;url&quot;: &quot;https://github.com/tc39/ecma262&quot;,
</ins><span class="cx">         &quot;keywords&quot;: [&quot;es7&quot;, &quot;ecmascript&quot;]
</span><span class="cx">     }
</span><span class="cx">     ],
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (182508 => 182509)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-04-07 23:37:13 UTC (rev 182508)
+++ trunk/Source/WebCore/ChangeLog        2015-04-07 23:42:16 UTC (rev 182509)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2015-04-07  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Get the features.json files ready for open contributions
+        https://bugs.webkit.org/show_bug.cgi?id=143436
+
+        Reviewed by Darin Adler.
+
+        * features.json:
+
</ins><span class="cx"> 2015-04-07  Alex Christensen  &lt;achristensen@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         More unreviewed fixing API tests.
</span></span></pre></div>
<a id="trunkSourceWebCorefeaturesjson"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/features.json (182508 => 182509)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/features.json        2015-04-07 23:37:13 UTC (rev 182508)
+++ trunk/Source/WebCore/features.json        2015-04-07 23:42:16 UTC (rev 182509)
</span><span class="lines">@@ -1,39 +1,114 @@
</span><span class="cx"> {
</span><span class="cx">     &quot;specification&quot;: [
</span><span class="cx">     {
</span><del>-        &quot;name&quot;: &quot;HTML5&quot;,
-        &quot;url&quot;: &quot;https://html.spec.whatwg.org&quot;,
-        &quot;keywords&quot;: [&quot;html&quot;, &quot;html5&quot;, &quot;html5.1&quot;],
-        &quot;category&quot;: &quot;html&quot;
</del><ins>+        &quot;name&quot;: &quot;CSS Media Queries Level 4&quot;,
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/mediaqueries-4/&quot;,
+        &quot;keywords&quot;: [&quot;css media queries&quot;, &quot;media queries&quot;],
+        &quot;category&quot;: &quot;css&quot;
</ins><span class="cx">     },
</span><span class="cx">     {
</span><ins>+        &quot;name&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/&quot;,
+        &quot;keywords&quot;: [&quot;css selectors&quot;, &quot;selectors&quot;],
+        &quot;category&quot;: &quot;css&quot;
+    },
+    {
</ins><span class="cx">         &quot;name&quot;: &quot;DOM&quot;,
</span><span class="cx">         &quot;url&quot;: &quot;https://dom.spec.whatwg.org&quot;,
</span><span class="cx">         &quot;keywords&quot;: [&quot;dom&quot;, &quot;dom4&quot;],
</span><span class="cx">         &quot;category&quot;: &quot;html&quot;
</span><span class="cx">     },
</span><span class="cx">     {
</span><ins>+        &quot;name&quot;: &quot;HTML5&quot;,
+        &quot;url&quot;: &quot;https://html.spec.whatwg.org&quot;,
+        &quot;keywords&quot;: [&quot;html&quot;, &quot;html5&quot;, &quot;html5.1&quot;],
+        &quot;category&quot;: &quot;html&quot;
+    },
+    {
</ins><span class="cx">         &quot;name&quot;: &quot;Streams&quot;,
</span><span class="cx">         &quot;url&quot;: &quot;https://streams.spec.whatwg.org&quot;,
</span><span class="cx">         &quot;keywords&quot;: [&quot;streams api&quot;],
</span><span class="cx">         &quot;category&quot;: &quot;webapps&quot;
</span><del>-    },
-    {
-        &quot;name&quot;: &quot;CSS Selectors Level 4&quot;,
-        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/&quot;,
-        &quot;keywords&quot;: [&quot;css selectors&quot;, &quot;selectors&quot;],
-        &quot;category&quot;: &quot;css&quot;
-    },
-    {
-        &quot;name&quot;: &quot;CSS Media Queries Level 4&quot;,
-        &quot;url&quot;: &quot;http://dev.w3.org/csswg/mediaqueries-4/&quot;,
-        &quot;keywords&quot;: [&quot;css media queries&quot;, &quot;media queries&quot;],
-        &quot;category&quot;: &quot;css&quot;
</del><span class="cx">     }
</span><span class="cx">     ],
</span><span class="cx"> 
</span><span class="cx">     &quot;features&quot;: [
</span><span class="cx">     {
</span><ins>+        &quot;name&quot;: &quot;CSS Selector :any-link&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#the-any-link-pseudo&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;The pseudo class :any-link matches any element that would match :link or :visisted.&quot;,
+        &quot;comment&quot;: &quot;A prefix version :-webkit-any-link has been available for a while but it was not 100% compliant to the specification.&quot;
+    },
+    {
+        &quot;name&quot;: &quot;CSS Selector :lang() level 4&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#the-lang-pseudo&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;The selector :lang() is extended in level 4 to support a list of language range, each range can contain a wildcard. For example: p:lang(\&quot;*-be\&quot;, \&quot;en\&quot;).&quot;
+    },
+    {
+        &quot;name&quot;: &quot;CSS Selector :matches()&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#matches&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;The selector :matches() takes a selector list as argument and matches an element if any of them matches (e.g. :matches(article &gt; section, #target)). When used for styling, the specificity of :matches() is the higest specificity of all selectors in the selector list.&quot;,
+        &quot;comment&quot;: &quot;The pseudo classes &lt;em&gt;:visited&lt;/em&gt; and &lt;em&gt;:link&lt;/em&gt; are not supported inside :matches().&quot;
+    },
+    {
+        &quot;name&quot;: &quot;CSS Selector :not() level 4&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#negation&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;The selector :not() in level 4 supports full selector lists as argument. For example: :not(:any-link &gt;&gt; img, :any-link &gt;&gt; picture).&quot;,
+        &quot;comment&quot;: &quot;The pseudo classes &lt;em&gt;:visited&lt;/em&gt; and &lt;em&gt;:link&lt;/em&gt; are not supported inside :not().&quot;
+    },
+    {
+        &quot;name&quot;: &quot;CSS Selector :nth-child(An+B of selector list) and :nth-last-child(An+B of selector list)&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#the-nth-child-pseudo&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;The pseudo classes :nth-child() and :nth-last-child() now supports a selector list that filters what to count. For example: \&quot;:nth-child(even of .visible)\&quot;.&quot;,
+        &quot;comment&quot;: &quot;The pseudo classes &lt;em&gt;:visited&lt;/em&gt; and &lt;em&gt;:link&lt;/em&gt; are not supported inside :nth-child() and :nth-last-child().&quot;
+    },
+    {
+        &quot;name&quot;: &quot;CSS Selector :placeholder-shown&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#placeholder&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;The selector :placeholder-shown matches any input element that has a visible placeholder.&quot;,
+        &quot;comment&quot;: &quot;Styling the placeholder can be done through the WebKit pseudo-element \&quot;::-webkit-input-placeholder\&quot;.&quot;
+    },
+    {
+        &quot;name&quot;: &quot;Case-insensitive attribute selectors&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/selectors-4/#attribute-case&quot;,
+        &quot;specification&quot;: &quot;CSS Selectors Level 4&quot;,
+        &quot;description&quot;: &quot;Any attribute selector that test a value can take a flag \&quot;i\&quot; to use case insensitive checks. For example: input[type=number i] test the value \&quot;number\&quot; case-insensitively.&quot;
+    },
+    {
</ins><span class="cx">         &quot;name&quot;: &quot;Element.closest()&quot;,
</span><span class="cx">         &quot;status&quot;: {
</span><span class="cx">             &quot;status&quot;: &quot;Done&quot;,
</span><span class="lines">@@ -55,13 +130,35 @@
</span><span class="cx">         &quot;description&quot;: &quot;Provide the events necessary to handle force click events in the page, overriding the default behavior.&quot;
</span><span class="cx">     },
</span><span class="cx">     {
</span><ins>+        &quot;name&quot;: &quot;Interaction Media Features (pointer, hover, any-pointer, any-hover)&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;http://dev.w3.org/csswg/mediaqueries-4/#mf-interaction&quot;,
+        &quot;specification&quot;: &quot;CSS Media Queries Level 4&quot;,
+        &quot;description&quot;: &quot;The \&quot;pointer\&quot; media defines how percise the pointing device is. The \&quot;hover\&quot; media defines the ability of the poiting device to hover elements.&quot;
+    },
+    {
+        &quot;name&quot;: &quot;Navigator.hardwareConcurrency&quot;,
+        &quot;status&quot;: {
+            &quot;status&quot;: &quot;Done&quot;,
+            &quot;enabled-by-default&quot;: true
+        },
+        &quot;url&quot;: &quot;https://wiki.whatwg.org/wiki/Navigator_HW_Concurrency&quot;,
+        &quot;webkit-url&quot;: &quot;http://trac.webkit.org/changeset/169017&quot;,
+        &quot;description&quot;: &quot;Navigator.hardwareConcurrency provides the total number of logical processors available to the user agent.&quot;
+    },
+    {
</ins><span class="cx">         &quot;name&quot;: &quot;Readable Streams&quot;,
</span><span class="cx">         &quot;status&quot;: {
</span><span class="cx">             &quot;status&quot;: &quot;In Development&quot;,
</span><span class="cx">             &quot;enabled-by-default&quot;: true
</span><span class="cx">         },
</span><span class="cx">         &quot;url&quot;: &quot;https://streams.spec.whatwg.org/#rs&quot;,
</span><del>-        &quot;specification&quot;: &quot;Streams&quot;
</del><ins>+        &quot;webkit-url&quot;: &quot;https://bugs.webkit.org/show_bug.cgi?id=138967&quot;,
+        &quot;specification&quot;: &quot;Streams&quot;,
+        &quot;comment&quot;: &quot;The ReadableStream and ReadableStreamReader interfaces are available but not functional.&quot;
</ins><span class="cx">     }
</span><span class="cx">     ]
</span><span class="cx"> }
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (182508 => 182509)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-04-07 23:37:13 UTC (rev 182508)
+++ trunk/Tools/ChangeLog        2015-04-07 23:42:16 UTC (rev 182509)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2015-04-07  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
+
+        Get the features.json files ready for open contributions
+        https://bugs.webkit.org/show_bug.cgi?id=143436
+
+        Reviewed by Darin Adler.
+
+        * Scripts/webkitpy/style/checkers/jsonchecker.py:
+        (JSONFeaturesChecker.check):
+        Extend the syntax checking a bit, but leave everything non-mandatory
+        very loose until we figure what fields are important.
+
</ins><span class="cx"> 2015-04-07  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Expose and test fixedLayoutSize via modern WebKit SPI
</span></span></pre></div>
<a id="trunkToolsScriptswebkitpystylecheckersjsoncheckerpy"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py (182508 => 182509)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py        2015-04-07 23:37:13 UTC (rev 182508)
+++ trunk/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py        2015-04-07 23:42:16 UTC (rev 182509)
</span><span class="lines">@@ -24,8 +24,8 @@
</span><span class="cx"> 
</span><span class="cx"> import json
</span><span class="cx"> import re
</span><ins>+from sets import Set
</ins><span class="cx"> 
</span><del>-
</del><span class="cx"> class JSONChecker(object):
</span><span class="cx">     &quot;&quot;&quot;Processes JSON lines for checking style.&quot;&quot;&quot;
</span><span class="cx"> 
</span><span class="lines">@@ -69,12 +69,42 @@
</span><span class="cx">                 self._handle_style_error(0, 'json/syntax', 5, '&quot;features&quot; key not found, the key is mandatory.')
</span><span class="cx">                 return
</span><span class="cx"> 
</span><ins>+            specification_name_set = Set()
+            if 'specification' in features_definition:
+                previous_specification_name = ''
+                for specification_object in features_definition['specification']:
+                    if 'name' not in specification_object or not specification_object['name']:
+                        self._handle_style_error(0, 'json/syntax', 5, 'The &quot;name&quot; field is mandatory for specifications.')
+                        continue
+                    name = specification_object['name']
+
+                    if name &lt; previous_specification_name:
+                        self._handle_style_error(0, 'json/syntax', 5, 'The specifications should be sorted alphabetically by name, &quot;%s&quot; appears after &quot;%s&quot;.' % (name, previous_specification_name))
+                    previous_specification_name = name
+
+                    specification_name_set.add(name)
+                    if 'url' not in specification_object or not specification_object['url']:
+                        self._handle_style_error(0, 'json/syntax', 5, 'The specifciation &quot;%s&quot; does not have an URL' % name)
+                        continue
+
</ins><span class="cx">             features_list = features_definition['features']
</span><ins>+            previous_feature_name = ''
</ins><span class="cx">             for i in xrange(len(features_list)):
</span><span class="cx">                 feature = features_list[i]
</span><del>-                if 'name' not in feature:
</del><ins>+                feature_name = 'Feature %s' % i
+                if 'name' not in feature or not feature['name']:
</ins><span class="cx">                     self._handle_style_error(0, 'json/syntax', 5, 'The feature %d does not have the mandatory field &quot;name&quot;.' % i)
</span><del>-                if 'status' not in feature:
-                    self._handle_style_error(0, 'json/syntax', 5, 'The feature %d does not have the mandatory field &quot;status&quot;.' % i)
</del><ins>+                else:
+                    feature_name = feature['name']
+
+                    if feature_name &lt; previous_feature_name:
+                        self._handle_style_error(0, 'json/syntax', 5, 'The features should be sorted alphabetically by name, &quot;%s&quot; appears after &quot;%s&quot;.' % (feature_name, previous_feature_name))
+                    previous_feature_name = feature_name
+
+                if 'status' not in feature or not feature['status']:
+                    self._handle_style_error(0, 'json/syntax', 5, 'The feature &quot;%s&quot; does not have the mandatory field &quot;status&quot;.' % feature_name)
+                if 'specification' in feature:
+                    if feature['specification'] not in specification_name_set:
+                        self._handle_style_error(0, 'json/syntax', 5, 'The feature &quot;%s&quot; has a specification field but no specification of that name exists.' % feature_name)
</ins><span class="cx">         except:
</span><span class="cx">             pass
</span></span></pre>
</div>
</div>

</body>
</html>