<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13853</bug_id>
          
          <creation_ts>2011-08-21 20:50:41 +0000</creation_ts>
          <short_desc>Add feature detection: The HTML5 specification should include a recommended feature detection technique for each major feature</short_desc>
          <delta_ts>2011-10-04 23:41:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>alexandre</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55551</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-21 20:50:41 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/spec/Overview.html
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Add feature detection:
The HTML5 specification should include a recommended feature detection
technique for each major feature.
For instance in the drag &amp; drop section, include a recommendation on how to
detect if the Web browser implements the key features (e.g. file drop).
This is not trivial, and not standard yet.
For instance, Firefox returns false to: { &apos;ondrop&apos; in
document.createElement(&apos;div&apos;) } although &apos;ondrop&apos; is implemented.
A starting point:
- http://diveintohtml5.org/everything.html
- http://www.modernizr.com
- https://github.com/Modernizr/Modernizr/wiki/Undetectables
-
http://blogs.msdn.com/b/ie/archive/2010/04/14/same-markup-writing-cross-browse
r-code.aspx
-
https://developer.mozilla.org/En/Browser_Detection_and_Cross_Browser_Support#U
se_feature_oriented_object_detection
Cordially,
Alexandre Alapetite
http://alexandre.alapetite.fr


Posted from: 89.150.138.175
User agent: Opera/9.80 (Windows NT 6.1; U; fr) Presto/2.9.168 Version/11.50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55578</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-08-22 12:05:14 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; For instance, Firefox returns false to: { &apos;ondrop&apos; in
&gt; document.createElement(&apos;div&apos;) } although &apos;ondrop&apos; is implemented.

I expect this to be fixed for Firefox 9 or 10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55586</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-22 18:23:02 +0000</bug_when>
    <thetext>There&apos;s a &quot;demos&quot; field in the boxes where people can put demos showing how to do this. In general I&apos;m reluctant to give an &quot;official&quot; way in the spec because each browser might have different subtleties, and the implemented reality and the specced convergence goal might not be quite in sync, etc. However, if anyone would like to offer a Web service that a script could ping and display information inline, I&apos;d be happy to do that. That&apos;s what the status boxes do, for example: they ping a service which returns information about each section and then the boxes are generated from that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57820</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-04 23:41:54 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: see comment 2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>