This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7427 - When the maxlength attribute is omitted it should return -1 like Opera and Firefox and not 0. (Alternatively it could return the maximum value like Chrome and presumably Safari do, but that seems less nice.
Summary: When the maxlength attribute is omitted it should return -1 like Opera and Fi...
Status: VERIFIED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://whatwg.org/specs/web-apps/curr...
Whiteboard:
Keywords: NE, NoReply
: 7482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-25 20:22 UTC by contributor
Modified: 2010-10-04 14:55 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2009-08-25 20:22:18 UTC
Section: http://whatwg.org/specs/web-apps/current-work/#dom-input-maxlength

Comment:
When the maxlength attribute is omitted it should return -1 like Opera and Firefox and not 0. (Alternatively it could return the maximum value like Chrome and presumably Safari do, but that seems less nice.

Posted from: 83.85.115.44
Comment 1 Anne 2009-08-25 20:22:56 UTC
To be clear, the maxLength DOM attribute for <textarea> should be consistent with this.
Comment 2 Anne 2009-09-03 09:12:36 UTC
*** Bug 7482 has been marked as a duplicate of this bug. ***
Comment 3 contributor 2009-09-21 23:05:31 UTC
Checked in as WHATWG revision r3934.
Check-in comment: textarea.maxLength and input.maxLength apparently return -1 when the attribute is missing.
http://html5.org/tools/web-apps-tracker?from=3933&to=3934
Comment 4 Maciej Stachowiak 2010-03-14 14:50:08 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, 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

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.