W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 2011

[Bug 13769] WF3: Add trim="" attribute to <textarea>, <input type=text/search>, <form>, and <fieldset> (applying to all contained fields of appropriate types) that strips leading and trailing whitespace from the value

From: <bugzilla@jessica.w3.org>
Date: Tue, 04 Oct 2011 22:29:26 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RBDUM-0003Bf-40@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13769

Marat Tanalin | tanalin.com <mtanalin@yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://tanalin.com/_experim
                   |                            |entz/bugs/w3/trim/
            Summary|WF3: Add trim="" attribute  |WF3: Add trim="" attribute
                   |to <input type=text>,       |to <textarea>, <input
                   |<input type=search>, and    |type=text/search>, <form>,
                   |<form> (applying to all     |and <fieldset> (applying to
                   |inputs of type=text and     |all contained fields of
                   |search) that strips leading |appropriate types) that
                   |and trailing whitespace     |strips leading and trailing
                   |from the value              |whitespace from the value

--- Comment #26 from Marat Tanalin | tanalin.com <mtanalin@yandex.ru> 2011-10-04 22:29:21 UTC ---
Unfortunately, the editor has overlooked textarea and fieldset elements when
updating summary. It probably and hopefully is purely accidental, so I've
edited the summary to reflect these unaccounted elements.

Besides, just in case, I've added testcase URL that trims a string on server
side using PHP's standard trim() function and thus illustrates expected
trimming effect.

To be clear (just in case too), whitespace characters set includes at least
following ones:

 space (ASCII 32),
 tab (ASCII 9),
 new line (line feed) (ASCII 10),
 carriage return (ASCII 13).

In general, browsers could just use built-in standard JavaScript String method
named trim() to perform trimming of form-fields' values.

Thanks.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 4 October 2011 22:29:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:05 UTC