Skip to content

Commit

Permalink
fix passing strings as chunks (facebook#22617)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding authored and zhengjitf committed Apr 15, 2022
1 parent 94d6849 commit df3ae46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-dom/src/server/ReactDOMServerFormatConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ function pushAttribute(
attributeSeparator,
attributeNameChunk,
attributeAssign,
escapeTextForBrowser(value),
stringToChunk(escapeTextForBrowser(value)),
attributeEnd,
);
}
Expand All @@ -482,7 +482,7 @@ function pushAttribute(
attributeSeparator,
attributeNameChunk,
attributeAssign,
escapeTextForBrowser(value),
stringToChunk(escapeTextForBrowser(value)),
attributeEnd,
);
}
Expand All @@ -493,7 +493,7 @@ function pushAttribute(
attributeSeparator,
attributeNameChunk,
attributeAssign,
escapeTextForBrowser(value),
stringToChunk(escapeTextForBrowser(value)),
attributeEnd,
);
}
Expand All @@ -510,7 +510,7 @@ function pushAttribute(
attributeSeparator,
attributeNameChunk,
attributeAssign,
escapeTextForBrowser(value),
stringToChunk(escapeTextForBrowser(value)),
attributeEnd,
);
}
Expand All @@ -532,7 +532,7 @@ function pushAttribute(
attributeSeparator,
stringToChunk(name),
attributeAssign,
escapeTextForBrowser(value),
stringToChunk(escapeTextForBrowser(value)),
attributeEnd,
);
}
Expand Down Expand Up @@ -1146,7 +1146,7 @@ function pushStartCustomElement(
attributeSeparator,
stringToChunk(propKey),
attributeAssign,
escapeTextForBrowser(propValue),
stringToChunk(escapeTextForBrowser(propValue)),
attributeEnd,
);
}
Expand Down

0 comments on commit df3ae46

Please sign in to comment.