mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fix passing strings as chunks (#22617)
This commit is contained in:
@@ -471,7 +471,7 @@ function pushAttribute(
|
||||
attributeSeparator,
|
||||
attributeNameChunk,
|
||||
attributeAssign,
|
||||
escapeTextForBrowser(value),
|
||||
stringToChunk(escapeTextForBrowser(value)),
|
||||
attributeEnd,
|
||||
);
|
||||
}
|
||||
@@ -482,7 +482,7 @@ function pushAttribute(
|
||||
attributeSeparator,
|
||||
attributeNameChunk,
|
||||
attributeAssign,
|
||||
escapeTextForBrowser(value),
|
||||
stringToChunk(escapeTextForBrowser(value)),
|
||||
attributeEnd,
|
||||
);
|
||||
}
|
||||
@@ -493,7 +493,7 @@ function pushAttribute(
|
||||
attributeSeparator,
|
||||
attributeNameChunk,
|
||||
attributeAssign,
|
||||
escapeTextForBrowser(value),
|
||||
stringToChunk(escapeTextForBrowser(value)),
|
||||
attributeEnd,
|
||||
);
|
||||
}
|
||||
@@ -510,7 +510,7 @@ function pushAttribute(
|
||||
attributeSeparator,
|
||||
attributeNameChunk,
|
||||
attributeAssign,
|
||||
escapeTextForBrowser(value),
|
||||
stringToChunk(escapeTextForBrowser(value)),
|
||||
attributeEnd,
|
||||
);
|
||||
}
|
||||
@@ -532,7 +532,7 @@ function pushAttribute(
|
||||
attributeSeparator,
|
||||
stringToChunk(name),
|
||||
attributeAssign,
|
||||
escapeTextForBrowser(value),
|
||||
stringToChunk(escapeTextForBrowser(value)),
|
||||
attributeEnd,
|
||||
);
|
||||
}
|
||||
@@ -1146,7 +1146,7 @@ function pushStartCustomElement(
|
||||
attributeSeparator,
|
||||
stringToChunk(propKey),
|
||||
attributeAssign,
|
||||
escapeTextForBrowser(propValue),
|
||||
stringToChunk(escapeTextForBrowser(propValue)),
|
||||
attributeEnd,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user