<?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>28034</bug_id>
          
          <creation_ts>2015-02-16 12:13:53 +0000</creation_ts>
          <short_desc>support &lt;input maxbytes=&quot;200&quot;&gt;</short_desc>
          <delta_ts>2015-06-17 06:14:50 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>netmosfera</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</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>117959</commentid>
    <comment_count>0</comment_count>
    <who name="">netmosfera</who>
    <bug_when>2015-02-16 12:13:53 +0000</bug_when>
    <thetext>Hello HTML team,

The maxlength attribute is fine as long you don&apos;t use a language that requires multibyte sequences for its characters.

&lt;input maxlength=&quot;127&quot; maxbytes=&quot;127&quot; bytes-charset=&quot;UTF8&quot;&gt; 
^ will be stored as UTF8
&lt;input maxlength=&quot;127&quot; maxbytes=&quot;127&quot; bytes-charset=&quot;UTF16&quot;&gt;
^ will be stored as UTF16

This means: you are allowed to enter up to 127 characters, as long their size in bytes is lower or equal to 127 bytes using the specified encoding (fallbacks to the accept-charset=&quot;&quot; one, or the page&apos;s one).

Plenty of web applications already do this check using javascript for preventing form submission of data that would inevitably cause an error (or be truncated).

HTH</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121181</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-17 06:14:50 +0000</bug_when>
    <thetext>The best way to get feedback on this would be to start a discussion about it on discuss.webplatform.org or public-webapps@w3.org or whatwg@whatwg.org, the re-open this bug if/when there&apos;s new information or expressions of implementer support that emerge from those discussions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>