<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Perceptus Back Story &#187; nowrap</title>
	<atom:link href="http://blog.perceptus.ca/tag/nowrap/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.perceptus.ca</link>
	<description>Issues and adventures in the life of a Canadian micro-sized geek company</description>
	<lastBuildDate>Tue, 31 Jan 2012 07:11:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cross Browser Compatibility of TEXTAREA and Chrome, Firefox, and IE with CSS &#8220;white-space: nowrap;&#8221;</title>
		<link>http://blog.perceptus.ca/2009/10/19/compatibility-textarea-chrome-firefox-ie-css-white-space-nowrap/</link>
		<comments>http://blog.perceptus.ca/2009/10/19/compatibility-textarea-chrome-firefox-ie-css-white-space-nowrap/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 05:27:44 +0000</pubDate>
		<dc:creator>leonard</dc:creator>
				<category><![CDATA[annoying]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tools.perceptus.ca]]></category>
		<category><![CDATA[web browser]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie9]]></category>
		<category><![CDATA[nowrap]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[textarea]]></category>
		<category><![CDATA[wrap]]></category>
		<category><![CDATA[wrapping]]></category>

		<guid isPermaLink="false">http://blog.perceptus.ca/?p=180</guid>
		<description><![CDATA[Today, the Perceptus Web Tools got a minor upgrade to improve browser compatibility. A company bought a  license to our unique Excel to SQL INSERT Commands tool for their internal, confidential, use.  Cool! We never expected tools.perceptus.ca to be a revenue generator&#8230; but it does have unique features.  After all, we wrote them because we [...]]]></description>
			<content:encoded><![CDATA[<p>Today, the <a href="http://tools.perceptus.ca">Perceptus Web Tools</a> got a minor upgrade to improve browser compatibility.</p>
<p>A company bought a  license to our unique <a title="Excel to SQL tool" href="http://tools.perceptus.ca/text-wiz.php?ops=7">Excel to SQL INSERT Commands tool</a> for their internal, confidential, use.  <span style="background-color: #ffffff;">Cool! We never expected tools.perceptus.ca to be a revenue generator&#8230; but it does have unique features.  After all, we wrote them because we couldn&#8217;t find another website that could do the task for us!</span></p>
<p>In the interest of delivering a nice package to our new licensee, we  noticed that many of the text mangling features did not work in Google  Chrome.  Chrome web browser was stripping line breaks and consolidating sequential &#8220;spaces&#8221;.  We then realized that the site was not working in Internet Explorer either. W<span style="background-color: #ffffff;">hoops.  Well, it is a  site primarily for our own internal uses, after all.</span></p>
<p><span style="background-color: #ffffff;">We had discovered a browser compatibility issue that probably affects very few people. We want a textarea without any wrapping, because some features are based on copy and pasting large amounts of data from Excel &#8211; automatic text wrapping makes hard to read.</span></p>
<p><span style="background-color: #ffffff;">Our original, Firefox functional, Chrome and Internet Explorer non-functional, TEXTAREA used the following:</span></p>
<ul>
<li>CSS: white-space: nowrap;</li>
<li>TEXTAREA attribute: WRAP=&#8221;OFF&#8221;</li>
</ul>
<p>In Firefox, we got a nice blob of text that you can scroll horizontally displayed.  In IE7 and IE8?  All kinds of crazy.  &#8221;Enter&#8221; keys got replaced by some sort of special inline character, lines and spaces got trimmed or cut out.  Google Chrome stripped out line breaks and leading spaces, and other oddities.</p>
<p>Upon research, we learned that the &#8220;WRAP&#8221; attribute is not W3C approved.  Technically, it is not deprecated, but that&#8217;s because it never existed in the specifications. So we removed it and tried to use only CSS. We tried a few combinations of the overflow, white-space, and display CSS properties.  They didn&#8217;t work.</p>
<p>What did work?</p>
<p>No CSS at all.</p>
<p>If you view the source of the tools.perceptus.ca site and the corresponding CSS file, you will only see this:</p>
<p>&lt;TEXTAREA <span>NAME</span>=&#8221;<span>thetext</span>&#8221; <span>ROWS</span>=&#8221;<span>20</span>&#8221; <span>COLS</span>=&#8221;<span>100</span>&#8221; <span>WRAP</span>=&#8221;<span>OFF</span>&#8220;&gt;</p>
<p>This works as we wanted in all three web browsers.  It is officially non-standard.  But it works.</p>
<p><span style="background-color: #ffffff;">If someone would like to submit a CSS that will actually work, I&#8217;d love to see it.  But for now, I&#8217;m just going to keep complaining about how much web programming still stinks. Maybe the moral of the story is that thanks to Apple&#8217;s Safari and Google Chrome, every web site should be tested against at least one of the Webkit based browsers in addition to Firefox and Internet Explorer.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.perceptus.ca/2009/10/19/compatibility-textarea-chrome-firefox-ie-css-white-space-nowrap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

