17 Jul 2008 RyanPavlik   » (Master)

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

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!