innerText and textContent are properties that get or set the text of an element or all its children. Internet Explorer implemented innerText in version 4.0, and it’s a useful, if misunderstood feature. WebKit also has innerText, carefully copying from, and even improving upon IE; and additionally has the standards compliant textContent, which we shall see, is no where near as useful and is in fact quite different. Firefox has textContent but not innerText, and a common mistake is writing code that retrieves one or the other, assuming the result will be the same (it’s not). Opera has the property, but it is little more than an alias of textContent, which to me is analogous to false advertising.
(more…)
Posts Tagged ‘Firefox’
Plain Text vs innerText vs textContent
Wednesday, September 1st, 2010Webkit Unicode Bug
Thursday, August 12th, 2010While working on the BetterVideo HTML5 player, I came across an odd bug in Safari; Unicode characters weren’t rendering correctly. What I was attempting to do was create a simple close button — a small box with an “x” in it. But I didn’t want to use the “x” character, I wanted something a little more specific. The Unicode character #&10005 is perfect, and there is a Webdings equivalent of it for Internet Explorer (small case “r”).
(more…)
The Internet Explorer Five Step Recovery Program
Wednesday, June 30th, 2010My name is Mike and I use Internet Explorer.
The IE9 Preview is looking strong, and Microsoft is bowing to the pressure of standards compliance. The IE9 Acid3 Test, which checks for CSS3 capabilities, is currently a very impressive score of 83; not very far behind Firefox’s 94. The release notes are a dream come true to anyone who’s done web development over the last ten years. Or is it too good to be true? If they didn’t include canvas in the next release it still might be years before we really have a full feature set of browser tools to work with, and canvas being arguably the most versatile, would be the most egregious omission. But the IE Team recently laid our fears to rest and updated their IE9 feature list to include canvas. Should we get excited? Or is this our abusive ex-boyfriend giving us a puppy? Before I’m able to seriously consider Internet Explorer as a viable platform, I may need professional help in order to get over the last decade…
The HTML5 Roadmap, Past and Present
Wednesday, June 23rd, 2010According to Google trends, HTML5 is one of the hottest technology topics today and in the very near future, it will be the language of choice for web applications, displacing Flash. The most publicized reason for the push to build web apps in HTML5 is that Flash is not allowed on the iPhone and the iPad, but the reasons go deeper and more technical than that.

(more…)
Script Injection: Debug with Your Favorite AJAX Library
Tuesday, June 15th, 2010You want to debug a web page using your favorite AJAX library, but it isn’t loaded into the page. Fortunately, there is a solution…
Video: Optimize Your Website to Load Faster!
Thursday, June 3rd, 2010One of the two videos from the June 1st meeting is posted. In this one, I go pretty deep into how to optimize your website. There’s a lot of energy in this one, and I’m surprised how much information I was able to cover; it should be enjoyable. The video is posted here, and to go along with the video is another one of my colorful presentations.
Video: The History of HTML5
Friday, May 14th, 2010One of the two videos from the May 4th meeting is posted. My presentation on The History of HTML5 is available here. Also see the presentation.
A reminder that Club AJAX is using the awesome BetterVideo™ player and hosting. The player has been updated with new controls (fullscreen) and social tools, so you can post the video via email, Twitter, Facebook, or grab the code and post it on your page.
Big Bang Theory – Best Line of the Year
Thursday, April 15th, 2010
On Monday night’s Big Bang Theory, Sheldon’s nemesis Wil Wheaton returns and their respective teams engage in a bowling match. Upon hearing that Wheaton will be on the other team (as pictured left), Sheldon stands up, faces him and says:
The Green Goblin to my Spider-man.
The Pope Paul V to my Galileo.
The Internet Explorer to my Firefox.
And there ya go. You were wondering what that picture was doing on the Club AJAX blog, weren’t you?






