Skip to content

Commit

Permalink
fix crash in blink
Browse files Browse the repository at this point in the history
  • Loading branch information
uazo committed Jul 2, 2023
1 parent 3f5f805 commit a31cbcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ diff --git a/third_party/blink/renderer/core/dom/element.cc b/third_party/blink/
+ for (auto& attribute : attribute_vector) {
+ auto value = attribute.Value();
+ if (value.Contains('\n') || value.Contains('<')) {
+ attribute.SetValue(g_null_atom);
+ attribute.SetValue(g_empty_atom);
+ }
+ }
+}
Expand Down

0 comments on commit a31cbcd

Please sign in to comment.