diff --git a/CHANGELOG.md b/CHANGELOG.md index 532d626706..da07b6e031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Svelte changelog +## 1.0.2 + +Set `style.cssText` rather than `style` ([#44](https://github.com/sveltejs/svelte/issues/44)) + ## 1.0.1 * Preserve SVG namespace inside each blocks diff --git a/compiler/generate/visitors/attributes/lookup.js b/compiler/generate/visitors/attributes/lookup.js index f31496d9e1..e36c5c45fb 100644 --- a/compiler/generate/visitors/attributes/lookup.js +++ b/compiler/generate/visitors/attributes/lookup.js @@ -103,7 +103,7 @@ const lookup = { srcset: { appliesTo: [ 'img' ] }, start: { appliesTo: [ 'ol' ] }, step: { appliesTo: [ 'input' ] }, - style: {}, + style: { propertyName: 'style.cssText' }, summary: { appliesTo: [ 'table' ] }, tabindex: { propertyName: 'tabIndex' }, target: { appliesTo: [ 'a', 'area', 'base', 'form' ] }, diff --git a/package.json b/package.json index 243d51c011..94dbe266e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte", - "version": "1.0.1", + "version": "1.0.2", "description": "The magical disappearing UI framework", "main": "dist/svelte.js", "files": [