Tycho
5df67e3675
fix(runtime-dom): handle undefined values in v-html ( #11403 )
2024-07-19 16:52:03 +08:00
linzhe
3e9e32ee0a
fix(runtime-dom): properly handle innerHTML unmount into new children ( #11159 )
...
close #9135
2024-07-17 16:37:14 +08:00
Doctor Wu
b3f8b5a4e7
fix(runtime-dom): avoid unset option's value ( #10416 )
...
close #10412
re-fix #10396
2024-02-28 19:07:12 +08:00
三咲智子 Kevin Deng
bfe6b459d3
style: update format & lint config ( #9162 )
...
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You
5b002869c5
fix(runtime-dom): fix width and height prop check condition
...
close #9762
2023-12-07 10:09:26 +08:00
zhoulixiang
bfc1838f31
fix(runtime-dom): set width/height with units as attribute ( #8781 )
...
Technically, width / height on `<img>`, `<video>` etc must be integers and cannot contain units. When set as a DOM property, the DOM force converts strings with units to 0. However, this is such a common mistake that most browsers nowadays supports such usage, and it makes sense for Vue to at least let it be set as an attribute.
2023-11-30 17:27:23 +08:00
丶远方
b01fc7ea84
chore: remove unnecessary imports ( #8262 )
2023-05-19 07:54:12 +08:00
linghaoSu
4495373d28
fix(runtime-dom): check attribute value when setting option value ( #8246 )
...
fix #8227
2023-05-08 15:26:14 +08:00
Evan You
e077e6f5f3
workflow: disable threads during tests
2023-02-02 22:08:37 +08:00
Evan You
8867bb259a
wip(vitest-migration): reactivity tests passing
2023-01-26 15:25:55 +08:00
Evan You
b1817fe9ee
fix(runtime-dom): fix unnecessary warning when setting coerced dom property value
...
fix #6616
2022-09-27 16:39:15 +08:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip]
2022-05-09 22:51:51 -04:00
zscumt123
fa1d14c2c8
fix(runtime-dom): catch more cases of DOM property setting error ( #5552 )
...
close #5545
2022-04-13 05:25:11 -04:00
木杉
2c09969b13
fix(runtime-dom): patch translate as an attr ( #5485 )
...
close #5462
2022-04-13 05:16:33 -04:00
Evan You
ae4b0783d7
chore: update repo references
2022-01-18 16:43:59 +08:00
Stefan Mayer
1701bf3968
fix(runtime-dom): patchDOMProps should not set _value if element is custom element ( #4839 )
...
Co-authored-by: Stefan Mayer <stefan.m.mayer@daimler.com>
2021-11-25 05:30:32 -05:00
Thorsten Lünborg
89b2f924fc
fix(runtime-dom): fix option element value patching edge case ( #4959 )
...
fix #4956
2021-11-25 05:05:02 -05:00
skirtle
620a69b871
fix(runtime-dom): consistently remove boolean attributes for falsy values ( #4348 )
2021-08-16 18:18:36 -04:00
鱼
5b3f1e8424
fix(runtime-core): patchChildren first in patchElement ( #4313 )
2021-08-16 15:46:27 -04:00
Evan You
1c7d737cc8
feat: support v-bind .prop & .attr modifiers
...
Also allows render function usage like the following:
```js
h({
'.prop': 1, // force set as property
'^attr': 'foo' // force set as attribute
})
```
2021-07-16 14:30:49 -04:00
HcySunYang
3756270272
fix(runtime-dom): capture errors when setting value for IDL ( #3578 )
...
fix #3576
2021-07-15 16:32:25 -04:00
GU Yiling
e3f5dcb99b
fix(runtime-dom): should remove attribute when binding `null` to `value` ( #3564 )
2021-05-28 15:48:22 -04:00
Thorsten Lünborg
c5d147c57f
fix(runtime-dom): ensure readonly type prop on textarea is handled patched as attribute ( #2888 )
...
close #2766
Co-authored-by: Thorsten Luenborg <t.luneborg@googlemail.com>
2021-02-24 14:51:19 -05:00
luwuer
f262438073
fix(runtime-dom): enable set form attr to null on form-elements ( #2840 ) ( #2849 )
...
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
Co-authored-by: Thorsten Lünborg <t.luenborg@googlemail.com>
2021-02-03 19:11:09 +01:00
edison
fb6b9f8e8f
fix(runtime-dom): attribute should be removed with nullish values ( #2679 )
...
fix #2677
2020-11-30 19:28:03 -05:00
Eduardo San Martin Morote
00683fce9a
fix(runtime-dom): patch `form` as an attribute ( #1788 )
...
Close #1787
2020-08-06 09:32:28 -04:00
Evan You
5c74243211
test: move mockWarn into setup files
2020-07-27 22:58:51 -04:00
Evan You
cb6a0915c5
fix(runtime-dom): remove attrs with nullish values
...
fix #1576
2020-07-14 16:25:21 -04:00
Felix Rilling
829b35e426
chore: typo fixes ( #1546 )
...
* chore: fix typos in comments/JSDoc.
* chore: fix typo in internal function name.
* chore: fix typos in test comments/descriptions/variable names.
2020-07-08 12:32:42 +02:00
Evan You
98bee596bd
fix(runtime-core): should catch dom prop set TypeErrors
...
based on #1051
2020-05-01 18:47:27 -04:00
Evan You
20bc7ba1c5
fix(runtime-dom): should not coerce nullish values to empty strings for non-string dom props
...
fix #1049
close #1092 , close #1093 , close #1094
2020-05-01 11:06:24 -04:00
likui
27b5c71944
fix(runtime-dom): should patch svg innerHtml ( #956 )
2020-04-13 12:13:37 -04:00
Evan You
ab16a065a8
refactor: adjust runtime-dom test structure + tests for dom props
2020-04-10 15:37:30 -04:00