setAllAttributes (newProps);
or, How to Know When You Still Have Learning to Do
Yes, that is a line I recently patched out of my own code. I was wondering why my simplifyProperties wasn’t working right, so I tried it then saved it to disk - and lo and behold, all the style properties had become XML attributes. In learning the AbiWord piecetable, I’ve had to struggle a bit with the concept of attrprops - attributes and properties. Specifically, I tend to mix them up - attributes are things like “name”, “label,” and “props”, while properties are things like “font-size: 12″ which can also be stored as the value of the aforementioned attribute. So now that you know that attributes and properties are different, I’m sure you can spot the bug in my post title
My GSoC project is moving along now! Just have to remember the difference between attributes and properties…
Syndicated 2008-07-17 16:20:37 from code art life - Ryan Pavlik on ClearDefinition