From a270661d20b98263d54a808d817e77fa4d5e0d5b Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 29 Jan 2019 14:09:51 -0500 Subject: [PATCH 1/2] rename `` to `` (#2017) --- site/content/examples/immutable/App.html | 2 +- .../examples/immutable/ImmutableTodo.html | 2 +- src/compile/Component.ts | 50 +++++++++---------- src/compile/nodes/Meta.ts | 5 -- src/compile/nodes/Options.ts | 5 ++ src/compile/nodes/shared/mapChildren.ts | 4 +- src/compile/render-dom/index.ts | 14 +++--- src/compile/render-dom/wrappers/Fragment.ts | 2 +- src/compile/render-ssr/Renderer.ts | 2 +- src/parse/state/tag.ts | 2 +- test/cli/samples/custom-element/src/Main.html | 4 +- .../samples/custom-method/main.html | 4 +- .../samples/escaped-css/main.html | 4 +- .../samples/html-slots/main.html | 4 +- test/custom-elements/samples/html/main.html | 4 +- .../samples/nested.skip/Counter.html | 4 +- .../samples/nested.skip/main.html | 4 +- .../samples/new-styled/main.html | 4 +- test/custom-elements/samples/new/main.html | 4 +- .../no-missing-prop-warnings/main.html | 4 +- .../samples/oncreate/main.html | 3 +- test/custom-elements/samples/props/main.html | 4 +- .../samples/props/my-widget.html | 4 +- .../component-static-immutable/input.html | 4 +- .../css-shadow-dom-keyframes/input.html | 4 +- .../error-svelte-selfdestructive/error.json | 2 +- .../immutable-svelte-meta-false/main.html | 4 +- .../samples/immutable-svelte-meta/main.html | 4 +- .../samples/spread-own-props/main.html | 2 +- .../Rect.html | 2 +- .../Rect.html | 2 +- .../namespace-invalid-unguessable/errors.json | 10 ++-- .../namespace-invalid-unguessable/input.html | 2 +- .../samples/namespace-invalid/errors.json | 10 ++-- .../samples/namespace-invalid/input.html | 2 +- .../samples/namespace-non-literal/errors.json | 10 ++-- .../samples/namespace-non-literal/input.html | 2 +- .../input.html | 2 +- .../validator/samples/tag-invalid/errors.json | 12 ++--- test/validator/samples/tag-invalid/input.html | 2 +- .../samples/tag-non-string/errors.json | 12 ++--- .../samples/tag-non-string/input.html | 2 +- 42 files changed, 114 insertions(+), 115 deletions(-) delete mode 100644 src/compile/nodes/Meta.ts create mode 100644 src/compile/nodes/Options.ts diff --git a/site/content/examples/immutable/App.html b/site/content/examples/immutable/App.html index db7795f43f..b5d78a165a 100644 --- a/site/content/examples/immutable/App.html +++ b/site/content/examples/immutable/App.html @@ -1,4 +1,4 @@ - + -

{foo}

\ No newline at end of file +

{foo}

diff --git a/test/custom-elements/samples/escaped-css/main.html b/test/custom-elements/samples/escaped-css/main.html index 0a28900d85..c465165483 100644 --- a/test/custom-elements/samples/escaped-css/main.html +++ b/test/custom-elements/samples/escaped-css/main.html @@ -1,4 +1,4 @@ - + @@ -6,4 +6,4 @@ .icon::before { content: '\ff' } - \ No newline at end of file + diff --git a/test/custom-elements/samples/html-slots/main.html b/test/custom-elements/samples/html-slots/main.html index fbc70b0aeb..91f1fb800e 100644 --- a/test/custom-elements/samples/html-slots/main.html +++ b/test/custom-elements/samples/html-slots/main.html @@ -1,4 +1,4 @@ - +
@@ -8,4 +8,4 @@

foo fallback content

-
\ No newline at end of file + diff --git a/test/custom-elements/samples/html/main.html b/test/custom-elements/samples/html/main.html index 4765b5a151..0931535a18 100644 --- a/test/custom-elements/samples/html/main.html +++ b/test/custom-elements/samples/html/main.html @@ -1,7 +1,7 @@ - + -

Hello {name}!

\ No newline at end of file +

Hello {name}!

diff --git a/test/custom-elements/samples/nested.skip/Counter.html b/test/custom-elements/samples/nested.skip/Counter.html index d365ce7644..87cde48466 100644 --- a/test/custom-elements/samples/nested.skip/Counter.html +++ b/test/custom-elements/samples/nested.skip/Counter.html @@ -1,7 +1,7 @@ - + - \ No newline at end of file + diff --git a/test/custom-elements/samples/nested.skip/main.html b/test/custom-elements/samples/nested.skip/main.html index 3e80f6015e..90459c83eb 100644 --- a/test/custom-elements/samples/nested.skip/main.html +++ b/test/custom-elements/samples/nested.skip/main.html @@ -1,4 +1,4 @@ - + -

clicked {count} times

\ No newline at end of file +

clicked {count} times

diff --git a/test/custom-elements/samples/new-styled/main.html b/test/custom-elements/samples/new-styled/main.html index be1b397fa5..e69c6e05b1 100644 --- a/test/custom-elements/samples/new-styled/main.html +++ b/test/custom-elements/samples/new-styled/main.html @@ -1,4 +1,4 @@ - +

styled

@@ -6,4 +6,4 @@ p { color: red; } - \ No newline at end of file + diff --git a/test/custom-elements/samples/new/main.html b/test/custom-elements/samples/new/main.html index 4765b5a151..0931535a18 100644 --- a/test/custom-elements/samples/new/main.html +++ b/test/custom-elements/samples/new/main.html @@ -1,7 +1,7 @@ - + -

Hello {name}!

\ No newline at end of file +

Hello {name}!

diff --git a/test/custom-elements/samples/no-missing-prop-warnings/main.html b/test/custom-elements/samples/no-missing-prop-warnings/main.html index a9baee2faf..3ea205e3f3 100644 --- a/test/custom-elements/samples/no-missing-prop-warnings/main.html +++ b/test/custom-elements/samples/no-missing-prop-warnings/main.html @@ -1,4 +1,4 @@ - +

foo: {foo}

-

bar: {bar}

\ No newline at end of file +

bar: {bar}

diff --git a/test/custom-elements/samples/oncreate/main.html b/test/custom-elements/samples/oncreate/main.html index 1a521ed761..ed3980a28e 100644 --- a/test/custom-elements/samples/oncreate/main.html +++ b/test/custom-elements/samples/oncreate/main.html @@ -1,4 +1,4 @@ - + - diff --git a/test/custom-elements/samples/props/main.html b/test/custom-elements/samples/props/main.html index bee06784e4..b36c7f3e3d 100644 --- a/test/custom-elements/samples/props/main.html +++ b/test/custom-elements/samples/props/main.html @@ -1,4 +1,4 @@ - + - \ No newline at end of file + diff --git a/test/custom-elements/samples/props/my-widget.html b/test/custom-elements/samples/props/my-widget.html index 6aabe5a73b..cf512e0ff8 100644 --- a/test/custom-elements/samples/props/my-widget.html +++ b/test/custom-elements/samples/props/my-widget.html @@ -1,8 +1,8 @@ - +

{items.length} items

-

{items.join(', ')}

\ No newline at end of file +

{items.join(', ')}

diff --git a/test/js/samples/component-static-immutable/input.html b/test/js/samples/component-static-immutable/input.html index d3c9d8066a..370c68e907 100644 --- a/test/js/samples/component-static-immutable/input.html +++ b/test/js/samples/component-static-immutable/input.html @@ -1,7 +1,7 @@ - + - \ No newline at end of file + diff --git a/test/js/samples/css-shadow-dom-keyframes/input.html b/test/js/samples/css-shadow-dom-keyframes/input.html index cc1274d7f9..bf0aebaa9a 100644 --- a/test/js/samples/css-shadow-dom-keyframes/input.html +++ b/test/js/samples/css-shadow-dom-keyframes/input.html @@ -1,4 +1,4 @@ - +
fades in
@@ -11,4 +11,4 @@ 0% { opacity: 0; } 100% { opacity: 1; } } - \ No newline at end of file + diff --git a/test/parser/samples/error-svelte-selfdestructive/error.json b/test/parser/samples/error-svelte-selfdestructive/error.json index bdef619538..2443bb9822 100644 --- a/test/parser/samples/error-svelte-selfdestructive/error.json +++ b/test/parser/samples/error-svelte-selfdestructive/error.json @@ -1,6 +1,6 @@ { "code": "invalid-tag-name", - "message": "Valid tag names are svelte:head, svelte:meta, svelte:window, svelte:body, svelte:self or svelte:component", + "message": "Valid tag names are svelte:head, svelte:options, svelte:window, svelte:body, svelte:self or svelte:component", "pos": 10, "start": { "character": 10, diff --git a/test/runtime/samples/immutable-svelte-meta-false/main.html b/test/runtime/samples/immutable-svelte-meta-false/main.html index 4649dac766..861260404b 100644 --- a/test/runtime/samples/immutable-svelte-meta-false/main.html +++ b/test/runtime/samples/immutable-svelte-meta-false/main.html @@ -1,4 +1,4 @@ - +