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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27450</bug_id>
          
          <creation_ts>2009-07-20 11:41:56 -0700</creation_ts>
          <short_desc>Support HTML5 :in-range and :out-of-range CSS selectors</short_desc>
          <delta_ts>2010-04-29 16:48:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>29071</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#suffering-from-an-underflow</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>28934</dependson>
    
    <dependson>29069</dependson>
    
    <dependson>29070</dependson>
    
    <dependson>29071</dependson>
          <blocked>19264</blocked>
    
    <blocked>24703</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Kent Tamura">tkent</assigned_to>
          <cc>adele</cc>
    
    <cc>Justin</cc>
    
    <cc>mike</cc>
    
    <cc>pkasting</cc>
    
    <cc>tkent</cc>
    
    <cc>webmaster</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>133179</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2009-07-20 11:41:56 -0700</bug_when>
    <thetext>See HTML5 spec section 4.10.4.2.9.

This encompasses parsing the min and max attributes, hooking them to the rangeUnderflow() and rangeOverflow() methods on the ValidityState object, and adding :in-range and :out-of-range support.

There is existing support for some WebKit-custom syntax for similar things for Dashboard widgets; this syntax predates HTML5.  dhyatt says that this syntax will be deprecated, and we don&apos;t need to worry about hooking this existing machinery into the ValidityState object or CSS selectors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136763</commentid>
    <comment_count>1</comment_count>
    <who name="Michelangelo De Simone">michelangelo</who>
    <bug_when>2009-08-03 13:42:54 -0700</bug_when>
    <thetext>On http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#rules-for-parsing-floating-point-number-values there&apos;s the algorithm to parse element&apos;s value and check whether or not it&apos;s a float number value.

Is that somehow already implemented?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136965</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-08-04 03:33:53 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; On
&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#rules-for-parsing-floating-point-number-values
&gt; there&apos;s the algorithm to parse element&apos;s value and check whether or not it&apos;s a
&gt; float number value.
&gt; 
&gt; Is that somehow already implemented?

WTF::strtod() in JavaScriptCore/wtf/dtoa.h might be useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137232</commentid>
    <comment_count>3</comment_count>
    <who name="Michelangelo De Simone">michelangelo</who>
    <bug_when>2009-08-04 19:06:28 -0700</bug_when>
    <thetext>(In reply to comment #2)

&gt; WTF::strtod() in JavaScriptCore/wtf/dtoa.h might be useful.

Thanks man, it&apos;s a good starting point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>145652</commentid>
    <comment_count>4</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-08 22:42:26 -0700</bug_when>
    <thetext>I&apos;ll split this bug into 3.  They will be:
 - min/max and ValidityState.rangeOverflow rangeUnderflow support for type=number
 - ditto for date&amp;time types
 - :in-range and :out-of-range CSS selectors</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219126</commentid>
    <comment_count>5</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-04-29 11:45:23 -0700</bug_when>
    <thetext>Kent, did anything ever happen on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219262</commentid>
    <comment_count>6</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-04-29 16:38:53 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Kent, did anything ever happen on this?

min/max attribute support was done.
The remaining is :out-of-range and :in-range CSS selectors. It&apos;s easy to implement but my priority for it is low.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219266</commentid>
    <comment_count>7</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-04-29 16:40:30 -0700</bug_when>
    <thetext>OK, updating title.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219269</commentid>
    <comment_count>8</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-04-29 16:44:20 -0700</bug_when>
    <thetext>It already has a dedicated bug: Bug#29071.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219271</commentid>
    <comment_count>9</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-04-29 16:48:13 -0700</bug_when>
    <thetext>OK, you could have just marked as a dupe then.

*** This bug has been marked as a duplicate of bug 29071 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>