Closed Bug 635498 Opened 14 years ago Closed 13 years ago

Make <input type='number'> behaves like <input type='text'>

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: mounir, Assigned: mounir)

References

Details

(Keywords: doc-bug-filed)

Attachments

(1 file, 1 obsolete file)

Attached patch Patch v1 (obsolete) — Splinter Review
This bug is only a step to fix bug 344616.
Attachment #513755 - Flags: review?(jonas)
Blocks: 635281
Whiteboard: [needs review]
Comment on attachment 513755 [details] [diff] [review] Patch v1 >diff --git a/content/html/content/test/test_bug345512.html b/content/html/content/test/test_bug345512.html >--- a/content/html/content/test/test_bug345512.html >+++ b/content/html/content/test/test_bug345512.html >@@ -286,21 +286,22 @@ function checkPatternValidity(element) > > var input = document.getElementById('i'); > > // All input types should have the pattern attribute. > checkPatternAttribute(input); > > // |validTypes| are the types which accept @pattern > // and |invalidTypes| are the ones which do not accept it. >-var validTypes = Array('text', 'password', 'search', 'telephone', 'email', 'url'); >+var validTypes = Array('text', 'password', 'search', 'telephone', 'email', >+ 'url', 'number'); > var barredTypes = Array('hidden', 'reset', 'button', 'submit', 'image'); > var invalidTypes = Array('checkbox', 'radio', 'file'); > // TODO: 'datetime', 'date', 'month', 'week', 'time', 'datetime-local', >-// 'number', 'range', ande 'color' do not accept the @pattern too but are >+// 'range', ande 'color' do not accept the @pattern too but are > // not implemented yet. "ande" -> "and" while you're here?
Blocks: 635749
Attached patch Patch v1.1Splinter Review
Fix typo mentioned in comment 1 and fix a todo that was failing (I would like this patch to pass all tests).
Attachment #513755 - Attachment is obsolete: true
Attachment #513755 - Flags: review?(jonas)
Attachment #515611 - Flags: review?(jonas)
Whiteboard: [needs review] → [ready to land][waits for dependencies]
No longer blocks: 635749
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [ready to land][waits for dependencies]
Target Milestone: --- → mozilla16
Keywords: dev-doc-needed
See bug 866457 for documentation.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: