Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- From: Dr J R Stockton <reply0934@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Aug 2009 17:22:16 +0100
In comp.lang.javascript message <daCdnTFc5akOlBbXnZ2dnUVZ_sadnZ2d@gigane
ws.com>, Tue, 18 Aug 2009 16:05:39, kangax <kangax@xxxxxxxxx> posted:
Opera 10b on my Mac OS X gives 23 (contrary to 24 as per your results
on 9.6; my 9.64 gives 24 too, I wonder if that's a regression):
\u0009 \u000a \u000b \u000c \u000d \u0020
\u00a0 \u2000 \u2001 \u2002 \u2003 \u2004 \u2005 \u2006 \u2007 \u2008
\u2009 \u200a \u200b \u2028 \u2029 \u202f \u3000
Added. The page now analyses the contents of its green box (now
editable), and reports which characters are seen as matching \s in all
listed browsers, and which in any of them.
There is an obvious layout bug in it (after pressing 'Go') with IE8 (not
with FF Op Sf Cr); \n in a string written to a PRE does not give
newline. Comment? Using <br> instead will fix it; but I've left a
couple of instances unfixed.
I remember I filed \xA0 with Chromium some time ago which is now fixed
- <http://code.google.com/p/chromium/issues/detail?id=5206>
Perhaps the boilerplate authors should view that page in Firefox 3.0.13
with the error console showing.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 7.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:http://www.idiotsdelight.net/minitrue/> unsupported.
.
- References:
- FAQ Topic - How do I trim whitespace? (2009-08-17)
- From: FAQ server
- Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- From: Dr J R Stockton
- Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- From: kangax
- Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- From: Dr J R Stockton
- Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- From: kangax
- FAQ Topic - How do I trim whitespace? (2009-08-17)
- Prev by Date: Re: form validation
- Next by Date: ★ ○ ★wholesale low price brand jersey *New York Giants jersey* *Pro Bowl jersey* *Super Bowljersey* *Chicago Bears jersey* etc by paypal
- Previous by thread: Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- Next by thread: Re: FAQ Topic - How do I trim whitespace? (2009-08-17)
- Index(es):
Relevant Pages
|
Loading