Maurício Kishi
f8605d6acb
[fix] harden attribute escaping during ssr ( #7530 )
3 years ago
Yosuke Ota
3a238fe057
[fix] strip leading newline after `<pre>` and `<textarea>` ( #7280 )
...
Fixes #7264
3 years ago
Yuichiro Yamashita
e0d93254fd
[feature] Dynamic elements implementation <svelte:element> ( #6898 )
...
Closes #2324
Co-authored-by: Alfred Ringstad <alfred.ringstad@hyperlab.se>
Co-authored-by: Simon Holthausen <simon.holthausen@accso.de>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
3 years ago
Maurício Kishi
cdd3575026
[fix] attribute escaping during ssr ( #7333 )
...
Fixes #7327 and a related security issue
3 years ago
Yosuke Ota
7463d51301
[fix]: keep space in `<pre>` or when `preserveWhitespace: true` ( #6990 )
...
Fixes #6437
Fixes #4731
Closes #4737
Whitespace is now untouched inside <pre> tag and other tags if preserveWhitespace is true
3 years ago
Conduitry
67b53bfe6d
[fix] prefer context from constructor options ( #6759 )
3 years ago
Tan Li Hau
f25a995f7b
collapse whitespace in class and style attributes ( #6613 )
3 years ago
Tan Li Hau
2818567925
fix input value 0 for ssr ( #6458 )
4 years ago
Jonnie
7bcbe67939
add ssr for group bindings ( #4621 )
...
* add ssr for group bindings
* remove unnecessary chunk length check
* check if checkbox or radio
Co-authored-by: tanhauhau <lhtan93@gmail.com>
4 years ago
Luis Confraria
554d5dd391
Fix preserveComments on ssr ( #4736 )
...
Fixes #4730
Co-authored-by: tanhauhau <lhtan93@gmail.com>
4 years ago
Tan Li Hau
bce3641e92
fix escaping attributes in spread in SSR ( #6429 )
4 years ago
Conduitry
455a5cc754
fix hydration of <title> ( #4311 )
5 years ago
Conduitry
7494509dfd
only attach SSR <head> markers when hydratable: true ( #4260 )
5 years ago
Tan Li Hau
b3582c7fb2
fix hydrating <head> ( #4082 )
5 years ago
Jesse Skinner
e3d66869df
fix stringifying of attributes in presence of spread in SSR ( #4247 )
5 years ago
Tan Li Hau
ef56a70acb
SSR should only render one <title> ( #4250 )
5 years ago
Conduitry
9f48d1a5fd
fix SSR spread with boolean attributes ( #3797 )
...
* in SSR, adjust spread with boolean attributes (#2916 )
* add tests
* update changelog
5 years ago
pngwn
57aeddcf85
Prevent element property set from throwing errors for readonly properties. Fixes #3681 .
5 years ago
mrkishi
52618594f4
fix .gitignore'd files
6 years ago
Efe Küçük
17c4a25016
Render textarea binding values inside element
...
* ssr-textarea-bind-fix
* oops
* trying again
* Fixing an old test
* avoid creating extra function expression
6 years ago
Colin Casey
f0831202d9
Omits readonly attributes from SSR code
...
* move `is_readonly` into the common `Binding` AST class
* prevents the following bindings from being emitted into the SSR code:
* `bind:clientWidth`
* `bind:clientHeight`
* `bind:offsetWidth`
* `bind:offsetHeight`
* `bind:duration`
* `bind:buffered`
* `bind:seekable`
* `bind:played`
* `bind:value` (only for `input` with `type=file`)
6 years ago
Richard Harris
cc942e963c
update runtime and ssr tests
6 years ago
Rich Harris
206a3d0131
update tests
6 years ago
Rich Harris
687e352209
rename .html files to .svelte
6 years ago
Rich Harris
48f1f6b4d0
implement `bind:this`
6 years ago
Rich Harris
f45e2b70fd
Implement reactive assignments ( #1839 )
...
This also includes elements of RFCs 2 and 3
6 years ago
Rich Harris
837d248257
render server bindings
6 years ago
Rich Harris
e937060de2
add non-spread test for attribute safety
7 years ago
Rich Harris
630bc5cbb9
sanitize spread attributes and disallow invalid attribute names
7 years ago
Conduitry
5e8a8b95e5
update some stray references to v1 syntax
7 years ago
Rich Harris
7224ef4eff
all tests passing
7 years ago
Rich Harris
d2a5b366d8
remove redundant test
7 years ago
Rich Harris
cae4dd93bf
fix some more tests
7 years ago
Rich Harris
87a8e37150
remove cascade option
7 years ago
Rich Harris
a2759604cb
SSR tests
7 years ago
Rich Harris
4fe8d95a6d
dont typecast numeric attributes
7 years ago
Rich Harris
3f7f237a9a
switch back to using svelte- instead of name-
7 years ago
Rich Harris
1ad28e6fe6
use base36 for style classes
7 years ago
Rich Harris
81743a2562
update more tests
7 years ago
Rich Harris
9971283671
update tests
7 years ago
Emil Ajdyna
f9fc7c9e91
Base scoping hashes on CSS content rather than entire file
7 years ago
Conduitry
fbb856ebbd
update test
7 years ago
Rich Harris
7026222792
escape HTML - fixes #1066
7 years ago
Rich Harris
ed44f7d1fa
server-side <:Head>
7 years ago
Rich Harris
50654fab88
remove <:Document>, implement <:Head> on client-side
7 years ago
Rich Harris
545ed7f0ed
generate title in SSR compiler
7 years ago
Rich Harris
0127f9f0ca
change server-side render method signature
7 years ago
Rich Harris
ffd06c462c
rename file
7 years ago
Rich Harris
774caf42ca
sanitize filenames before SSRing - fixes #1005
7 years ago
Efthymis Sarmpanis
4c06226a5c
Add support for intercepting different file extensions, other than .html, in ssr. ( #940 )
...
Proposal for #939
7 years ago