hixie: Make the close box persistent.

hixie: Make the close box persistent.

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4549&r2=1.4550&f=h

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4549
retrieving revision 1.4550
diff -u -d -r1.4549 -r1.4550
--- Overview.html 15 Nov 2010 23:48:48 -0000 1.4549
+++ Overview.html 16 Nov 2010 00:21:34 -0000 1.4550
@@ -476,7 +476,12 @@
   <script type="text/javascript">
    function closeWarning(element) {
      element.parentNode.removeChild(element);
+     var date = new Date();
+     date.setDate(date.getDate()+4);
+     document.cookie = 'hide-obsolescence-warning=1; expires=' + date.toGMTString();
    }
+   if (getCookie('hide-obsolescence-warning') == '1')
+     setTimeout(function () { document.getElementById('wip').parentNode.removeChild(document.getElementById('wip')); }, 2000);
   </script><!--
   <script type="text/javascript">
    if (location == 'http://dev.w3.org/html5/spec/Overview.html') {

Received on Tuesday, 16 November 2010 00:22:22 UTC