title: HTML5 datetime min attribute
body: <p>In a HTML5 website, I use the new datetime input type field with an alternative for old browsers.</p>
  
  <p>In my case, the datetime field is used to set an upcoming event so it must be impossible to set a datetime defined in the past. The min attribute should allow me to do that but it seems to not work whereas it does the job on date or time input fields.</p>
  
  <p>Here is my code (edit View, but same problem in add View) :</p>
  
  <pre><code>&lt;input type="datetime-local" id="EventDatetime" name="data[Event][datetime]" step="900" min="&lt;?php echo date(DATE_RFC3339); ?&gt;" value="&lt;?php echo $event-&gt;date; ?&gt;" required/&gt;
  </code></pre>
  
  <p>which should give : </p>
  
  <pre><code>&lt;input type="datetime-local" id="EventDatetime" name="data[Event][datetime]" step="900" min="2012-10-01T13:05:00+02+00" value="2012-11-01T13:05:00+02+00" required/&gt;
  </code></pre>
  
  <p>If I check this code in the inspector (Chrome, Opera...), the <code>min</code> tag does not exist, if I try to get it in javascript, I get <code>undefined</code>. However, this tag is present in the source code (via Ctrl+U in the browser). I don't understand....</p>
  
  <p>Does anybody have an idea? Thanks in advance</p>