Hello 
One piece of information I was unable to find :
In the stylesheet, I have this :
#object1 a {
background-color: #ffffff;
}
#object2 a {
background-color: #000000;
}
Only #object1 is located in the html page.
Now, from a javascript, I want to grab all the properties of object2 and assign them to object1 ... but this is where I'm stuck :
document.getElementById( 'object1').style.cssText = ???;
A workaround would be to have a dummy object2 hidden in the html page and do this :
document.getElementById( 'object1').style.cssText = document.getElementById( 'object2').style.cssText;
... but I don't like it.
Any idea?

One piece of information I was unable to find :
In the stylesheet, I have this :
#object1 a {
background-color: #ffffff;
}
#object2 a {
background-color: #000000;
}
Only #object1 is located in the html page.
Now, from a javascript, I want to grab all the properties of object2 and assign them to object1 ... but this is where I'm stuck :
document.getElementById( 'object1').style.cssText = ???;
A workaround would be to have a dummy object2 hidden in the html page and do this :
document.getElementById( 'object1').style.cssText = document.getElementById( 'object2').style.cssText;
... but I don't like it.
Any idea?