File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ def test_character_reference_decimal_garbage_at_the_end
72
72
assert_check_failed ( "0x;" , "&" )
73
73
end
74
74
75
+ def test_character_reference_decimal_space_at_the_start
76
+ # U+0030 DIGIT ZERO
77
+ assert_check_failed ( "&# 48;" , "&" )
78
+ end
79
+
75
80
def test_character_reference_decimal_control_character
76
81
# U+0008 BACKSPACE
77
82
assert_check_failed ( "" , "" )
@@ -92,6 +97,11 @@ def test_character_reference_hex_garbage_at_the_end
92
97
assert_check_failed ( "Hx;" , "&" )
93
98
end
94
99
100
+ def test_character_reference_hex_space_at_the_start
101
+ # U+0030 DIGIT ZERO
102
+ assert_check_failed ( "&#x 30;" , "&" )
103
+ end
104
+
95
105
def test_character_reference_hex_surrogate_block
96
106
# U+0D800 SURROGATE PAIR
97
107
assert_check_failed ( "�" , "�" )
You can’t perform that action at this time.
0 commit comments