dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Bug: append_markup does not convert CSS inline style property names to camelCase annotation names. #866

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
blip.append_markup() tries to convert inline styles to annotations, but fails 
to change hyphenated property names to camelCase names.

For example:

This does not set a red background color: 
blip.append_markup('<span style="background-color:red">red</span>') 

This does, even though it is not correct CSS:
blip.append_markup('<span style="backgroundColor:red">red</span>') 

Demo wave:
https://wave.google.com/wave/waveref/googlewave.com/w+LwIC-BMrE

Some regular expression could be used to fix this.

Original issue reported on code.google.com by celehner1 on 28 Jul 2010 at 2:49