CSS is Syntactically Inconsistent

in
HTML is a pretty straightforward markup language. It has tags, each of which has optional attributes and sometimes required ones as well. Content goes between the opening and closing tags. Sometimes you can even self-close tags (but not <script> ! For the love of all things holy not script!). That's about it -- there are comments and a doctype (which is just a special comment in the scheme of things), and some quirks relating mostly to form element attributes, but the gist of html is tags with attributes. JavaScript has been to hell and back in attempting to handle this object model, but is getting there. If you want to be there now, the extendability of js allows you to use a library like JQuery to play with the tags, attributes, and their associated behaviors. How, then, can a more recently-updated language like CSS be going so off course? Take, for example, this checkbox:
<input type="checkbox" name="receivenewsletter" class="register-input" id="receivenewsletter" checked />
Here are some ways to target it using CSS:
  • input[type="checkbox"]{}
  • input[name="receivenewsletter"]{}
  • input.register-input{}
  • input#receivenewsletter{}
  • input:checked{}
Some of the "input"s in the list are superfluous, but I left them for illustrative purposes. Otherwise, it would be difficult to see that #receivenewsletter is really preceded by the universal selector for all intents and purposes. I can sort of buy the full stop being shorthand for [class=""] and similarly the hash for an id (though in the development of CSS as a language, that's not really wha happened), but the last example really bugs me. CSS pseudo-classes are generally relegated to default browser styles/behaviors that can reasonably take CSS declarations. :hover is a good example. If you've ever tried to apply :hover to an element other than an anchor, you know that IE6- will not take the directive. I agree with this -- <a> has a default behavior on hover while most other elements do not. The :hover pseudo-class is therefore taking over behavioral duties from JavaScript. Just so you know, I also think that the quirks mode box model makes more sense and would allow for better liquid layouts and cleaner markup had it been the standard. Getting back to :checked -- As far as I know, hovering does not create, destroy, or change attributes by default in a browser. On the other hand, checking a checkbox via an interface does create or remove a checked attribute. Therefore checked should be treated as an attribute using an attribute selector. Having the pseudo-class just muddies the issue. Just my two cents. I could be wrong.

iPhone alarm clock improvements

You're like me: you use your iPhone as an alarm clock. You even cued up Sonny & Cher's "I Got You Babe" to play just like in Groundhog Day (to remind yourself every morning that the only way to beat the futility of day-to-day life is to strive for what you really want). Yeah, you're like me.

Google Chatback Badge Improvements

in
Google Chatback badges are great for adding the ability to chat to with your visitors to your sites - Google even offers a couple of formats that you can copy and paste straight from their site. It couldn't be easier!

Skeptical about this one

Today's circulating single-volume wonder was the barely-tolerable Encyclopedia of Strange and Unexplained Physical Phenomena [Jerome Clark, Gale, 1993]. Encyclopedia of Strange and Unexplained Physical Phenomena I

Encyclopedia of Censorship

Today's Encyclopedia in the series is The Encyclopedia of Censorship, edited by Jonathon Green.

Week 2 - Encyclopedia by Letters

This week I'm reading an entry from each letter of the alphabet (26 entries if you're keeping score) from a different Encyclopedia every day. Today was Encyclopedia of the Great Depression, and here's what I read about:
  1. American Youth Congress
  2. Bourke-White, Margaret
  3. Brad Czerniak's blog
  4. Read more

52for2009 #1 - Turk for 2 hours a day

This year I'm doing something new every week. Sometimes it'll be accomplishing a particular thing (like writing all my representative legislators), but more often it will be a daily activity for the week, like watching a Woody Allen film nightly. As you may have guessed, I'll be blogging these experiences.

Week 1

This week I'm spending 2 hours a day doing HITs (Human Intelligence Tasks) on Amazon's Mechanical Turk.

Recipe before I make it #1- MexItalian Burger

Part 1 in a continuing series where I think up a recipe, post it, THEN make it. I will post later as to whether it's worth making/eating. I will try to be elaborate with the actual procedural recipes; but right now I'm quite hungry, so here's the menu description: MexItalian Burger A 1/4 lb patty, covered with shredded Mexican cheeses, Black beans, and Jalapenos, all on a Bruschetta-like bread bun.

For the Cultural Lexicon

in
Since I feel shafted that "rocket surgery" took off unattributed, I propose the following terms:
  1. stARCHIVE - The act of starring an item in gmail, then immediately archiving it.
  2. Fonticate - while used by Michael Herf as the name for a cool font-picking program, I propose the word be used in this manner: The act of reformatting a multi-user document (esp. a collaborative powerpoint presentation) by uniformely changing the font and various other visual elements.

meta rock

in
meta rock Originally uploaded by bradeuchre This is my entry into Color War 2008's first battle -- Flickr RoShamBo!
Syndicate content