<?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>26915</bug_id>
          
          <creation_ts>2014-09-27 10:08:48 +0000</creation_ts>
          <short_desc>Opt-in to the ES6 `u` flag for regular expressions?</short_desc>
          <delta_ts>2014-10-10 20:38:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#the-pattern-attribute</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mathias</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112337</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-09-27 10:08:48 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/forms.html
Multipage: https://html.spec.whatwg.org/multipage/#the-pattern-attribute
Complete: https://html.spec.whatwg.org/#the-pattern-attribute
Referrer: https://www.google.com/

Comment:
Opt-in to the ES6 `u` flag for regular expressions?

Posted from: 176.219.173.4
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.58 Safari/537.36 OPR/25.0.1614.18 (Edition beta)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112338</commentid>
    <comment_count>1</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2014-09-27 10:11:52 +0000</bug_when>
    <thetext>ES6 introduces the `u` flag for regular expressions, which makes their behavior much more sensible and Unicode-friendly. It would be nice to enable this flag for the `pattern` attribute. Backwards compatibility is a concern (I’ve documented some differences in behavior here: https://mathiasbynens.be/notes/es6-unicode-regex) so we might need a new opt-in switch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112392</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-29 16:36:20 +0000</bug_when>
    <thetext>Isn&apos;t there an inline opt-in like in Perl? (e.g. so you can have subregions that are case-insensitive and subregions that aren&apos;t?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112413</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-09-29 20:41:19 +0000</bug_when>
    <thetext>Use counter for pattern:
http://www.chromestatus.com/metrics/feature/timeline/popularity/44

Earlier discussion about `i`:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=11011</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112972</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-10-10 20:38:40 +0000</bug_when>
    <thetext>I think if we have to have an out-of-band opt-in, this is a non-starter. However, if we can just turn this on always, it would make a lot of sense.

I&apos;ve gone ahead and made &quot;u&quot; be specified always. Hopefully this is Web-compatible. The biggest risk is with inappropriate escapes (as in pattern=&quot;\a&quot;).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>