Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Sep 21, 2024
1 parent 71f8baf commit e451743
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -896,9 +896,9 @@ static string JoinModifiers(IReadOnlyList<ModifierCode> modifiers)

var success = (string modifierCode) => (true, modifierCode);

if (tagName == "iframe" && name.Equals("src", StringComparison.OrdinalIgnoreCase))
if ((tagName == "iframe" || tagName == "script") && name.Equals("src", StringComparison.OrdinalIgnoreCase))
{
return success($"iframe.Src({value})");
return success($"{tagName}.Src({value})");
}

if (tagName == "svg" && name.Equals("size", StringComparison.OrdinalIgnoreCase) && double.TryParse(value.RemovePixelFromEnd(), out _))
Expand Down

0 comments on commit e451743

Please sign in to comment.