Well duktape has some json support out of the box. It has a JSON global object, with JSON.parse() in it and I don't know what else, so using js to convert css to json might be a practical pathway. Course we'd have to follow up with a function to apply bgcolor=white to foo.style wherever that makes sense. Karl Dahlke