Version: (using KDE Devel) Installed from: Compiled sources Khtml incorrectly parses style attributes, it seems to fail if they are specified in a CSS block. I tried to track this back and the problem seems to be in the grammar itself, but I can't spot the error. This works: <html> <body style="background: white url(ships.png) repeat;"> feuhfuifhwue </body> </html> This does NOT: <html> <body style="{background: white url(ships.png) repeat;}"> feuhfuifhwue </body> </html> My readig of the spec at http://www.w3.org/TR/css-style-attr implies both are equally valid. Notes: The style appears to get passed directly to it as a DOM string by CSSStyleDeclarationImpl. I'm wondering if it's to do with the voodoo pseudo token khtml-decl-sym{ that gets put into it this seems to exist to set the start state of the parser but then the lexer will see {{ which might throw it off.
Here's a better test case, it's simpler and works standalone. If you remove the braces it works. <html> <body style="{ background-color: #cccccc }"> feuhfuifhwue </body> </html>
Created attachment 12099 [details] test case
Problem confirmed on Konqueror 4 (trunk)
I think this is the correct behavior. While {background-color: #cccccc } is a valid block, it isn't a valid declaration-list, which is what the style attribute asks for.