webstorage; hixie: block more spam

webstorage; hixie: block more spam

http://dev.w3.org/cvsweb/html5/webstorage/Overview.html?r1=1.160&r2=1.161&f=h

===================================================================
RCS file: /sources/public/html5/webstorage/Overview.html,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- Overview.html 8 Feb 2011 21:31:18 -0000 1.160
+++ Overview.html 28 Feb 2011 22:16:56 -0000 1.161
@@ -229,7 +229,7 @@
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
 
    <h1>Web Storage</h1>
-   <h2 class="no-num no-toc" id="editor-s-draft-8-february-2011">Editor's Draft 8 February 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-28-february-2011">Editor's Draft 28 February 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/webstorage/">http://www.w3.org/TR/webstorage/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -281,7 +281,14 @@
     change rapidly and make your feedback harder to understand.</p>
     <script type="text/javascript">
      function checkFeedbackForm(form) {
-       if (form.elements.text.value.match(/ [^ ]+ [^ ]+ [^ ]+ [^ ]+ /)) {
+       if (form.elements.text.value.match(/^ *</)) {
+         alert('Please don\'t start your feedback with an angle bracket, instead explain what topic your feedback is about first.');
+         return true;
+       } else if (form.elements.text.value.match(/ [^ ]+ [^ ]+ [^ ]+ [^ ]+ /)) {
+       if (form.elements.text.value.match(/^Please enter your feedback, carefully/)) {
+         alert('Please enter your feedback, explaining what is wrong, and without repeating the instructions. Thanks!');
+         return true;
+       } else if (form.elements.text.value.match(/ [^ ]+ [^ ]+ [^ ]+ [^ ]+ /)) {
          form.action = "http://www.whatwg.org/specs/web-apps/current-work/file-bug.cgi";
          return true;
        } else {
@@ -290,7 +297,7 @@
        }
      }
     </script><p>
-     <input onclick="return checkFeedbackForm(form)" type="submit" value="Submit feedback"><small>(Note: Your IP address will be publicly recorded for spam prevention purposes.)</small>
+     <input onclick="return checkFeedbackForm(form)" type="submit" value="Submit feedback"><small>(Note: Your IP address and user agent will be publicly recorded for spam prevention purposes.)</small>
     </p>
    </fieldset></form><p>You can also e-mail feedback to <a href="mailto:public-webapps@w3.org">public-webapps@w3.org</a> (<a href="mailto:public-webapps-request@w3.org?subject=subscribe">subscribe</a>,
   <a href="http://lists.w3.org/Archives/Public/public-webapps/">archives</a>),
@@ -322,7 +329,7 @@
   </dl><p>The W3C <a href="http://www.w3.org/2008/webapps/">Web Applications
   Working Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation track.
-  This specification is the 8 February 2011 Editor's Draft.
+  This specification is the 28 February 2011 Editor's Draft.
   </p><!-- required patent boilerplate --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
   February 2004 W3C Patent Policy</a>. W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/42538/status" rel="disclosure">public list of
   any patent disclosures</a> made in connection with the deliverables

Received on Monday, 28 February 2011 22:18:48 UTC