We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ebfef commit 84b7b82Copy full SHA for 84b7b82
src/platforms/web/server/modules/dom-props.js
@@ -20,14 +20,17 @@ export default function renderDOMProps (node: VNodeWithData): string {
20
return res
21
}
22
23
+ const attrs = node.data.attrs
24
for (const key in props) {
25
if (key === 'innerHTML') {
26
setText(node, props[key], true)
27
} else if (key === 'textContent') {
28
setText(node, props[key])
29
} else {
30
const attr = propsToAttrMap[key] || key.toLowerCase()
- if (isRenderableAttr(attr)) {
31
+ if (isRenderableAttr(attr) &&
32
+ // avoid rendering double-bound props/attrs twice
33
+ !(attrs && attrs[attr])) {
34
res += renderAttr(attr, props[key])
35
36
src/platforms/web/server/util.js
@@ -8,7 +8,7 @@ const isAttr = makeMap(
8
'checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,' +
9
'name,contenteditable,contextmenu,controls,coords,data,datetime,default,' +
10
'defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,' +
11
- 'form,formaction,headers,<th>,height,hidden,high,href,hreflang,http-equiv,' +
+ 'form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,' +
12
'icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,' +
13
'manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,' +
14
'muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,' +
0 commit comments