Skip to content

Commit 24ef84a

Browse files
author
ArthurHub
committed
* Fix html attributes case sensitivity
* update version to 1.4.11.0
1 parent 05c4add commit 24ef84a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎Source/HtmlRenderer/Parse/DomParser.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,10 @@ private static void TranslateAttributes(HtmlTag tag, CssBox box)
376376
box.VerticalAlign = value.ToLower();
377377
break;
378378
case HtmlConstants.Background:
379-
box.BackgroundImage = value;
379+
box.BackgroundImage = value.ToLower();
380380
break;
381381
case HtmlConstants.Bgcolor:
382-
box.BackgroundColor = value;
382+
box.BackgroundColor = value.ToLower();
383383
break;
384384
case HtmlConstants.Border:
385385
if (!string.IsNullOrEmpty(value) && value != "0")
@@ -397,7 +397,7 @@ private static void TranslateAttributes(HtmlTag tag, CssBox box)
397397
}
398398
break;
399399
case HtmlConstants.Bordercolor:
400-
box.BorderLeftColor = box.BorderTopColor = box.BorderRightColor = box.BorderBottomColor = value;
400+
box.BorderLeftColor = box.BorderTopColor = box.BorderRightColor = box.BorderBottomColor = value.ToLower();
401401
break;
402402
case HtmlConstants.Cellspacing:
403403
box.BorderSpacing = TranslateLength(value);

‎Source/HtmlRenderer/Parse/HtmlParser.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private static void ExtractAttributes(string source, int idx, int length, out Di
226226
{
227227
if (attributes == null)
228228
attributes = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
229-
attributes[key] = value;
229+
attributes[key.ToLower()] = value;
230230
}
231231

232232
startIdx = endIdx + (hasPChar ? 2 : 1);

‎Source/HtmlRenderer/Properties/AssemblyInfo.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
// Build Number
2929
// Revision
3030
//
31-
[assembly: AssemblyVersion("1.4.10.0")]
31+
[assembly: AssemblyVersion("1.4.11.0")]

0 commit comments

Comments
 (0)