Thursday, October 18, 2007

Baby Pixel

News, big news!

We have a new member in the Pixel family: Andrei.

He brings sheer joy and sleepless nights in our lifes.

He put a smile in my heart that will never dissapear.

See below Mister Pixel and Baby Pixel:

Quick stats:
  • 4.300 Kilos and 53.5cm at birth
  • actual dimensions :) : 40-40-40
  • age: 3 weeks
  • milk per day (supplement): 6 meals, 600ml
  • interests & hobbies: eat, sleep, cry, smile, poop.
  • Race: JS Wizard Level:1 HP:5/5 SP:0/5 STR:20 DEX:5 INT:5

Tuesday, February 06, 2007

Here's a javaScript fix for the BASE element IE6 bug: the BASE element becomes parent for all following tags if it is not closed with < / base > . As a result: selection problems and unexpected DOM tree (the parent for the BODY tag is the BASE element).

function fixIEBaseTagBug() {
if ( {
var bases = document.getElementsByTagName('BASE');
if (bases.length) {
 if(bases[0].innerHTML != '') {
  var theHeadNode = document.getElementsByTagName("head")[0];
  var newBase = document.createElement('BASE');
  newBase.href = bases[0].href;
  theHeadNode.insertBefore(newBase, theHeadNode.firstChild);


P.S. some details on the BASE tag here on MSDN: