1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
name: named
label: a basic named HTML entity
input: " "
output: [HTMLEntityStart(), Text(text="nbsp"), HTMLEntityEnd()]
---
name: numeric_decimal
label: a basic decimal HTML entity
input: "k"
output: [HTMLEntityStart(), HTMLEntityNumeric(), Text(text="107"), HTMLEntityEnd()]
---
name: numeric_hexadecimal_x
label: a basic hexadecimal HTML entity, using 'x' as a signal
input: "k"
output: [HTMLEntityStart(), HTMLEntityNumeric(), HTMLEntityHex(char="x"), Text(text="6B"), HTMLEntityEnd()]
---
name: numeric_hexadecimal_X
label: a basic hexadecimal HTML entity, using 'X' as a signal
input: "k"
output: [HTMLEntityStart(), HTMLEntityNumeric(), HTMLEntityHex(char="X"), Text(text="6B"), HTMLEntityEnd()]
---
name: numeric_decimal_max
label: the maximum acceptable decimal numeric entity
input: ""
output: [HTMLEntityStart(), HTMLEntityNumeric(), Text(text="1114111"), HTMLEntityEnd()]
---
name: numeric_hex_max
label: the maximum acceptable hexadecimal numeric entity
input: ""
output: [HTMLEntityStart(), HTMLEntityNumeric(), HTMLEntityHex(char="x"), Text(text="10FFFF"), HTMLEntityEnd()]
---
name: numeric_zeros
label: zeros accepted at the beginning of a numeric entity
input: "k"
output: [HTMLEntityStart(), HTMLEntityNumeric(), Text(text="0000000107"), HTMLEntityEnd()]
---
name: numeric_hex_zeros
label: zeros accepted at the beginning of a hex numeric entity
input: "ć"
output: [HTMLEntityStart(), HTMLEntityNumeric(), HTMLEntityHex(char="x"), Text(text="0000000107"), HTMLEntityEnd()]
---
name: invalid_named_too_long
label: a named entity that is too long
input: "&sigmaSigma;"
output: [Text(text="&sigmaSigma;")]
---
name: invalid_named_undefined
label: a named entity that doesn't exist
input: "&foobar;"
output: [Text(text="&foobar;")]
---
name: invalid_named_nonascii
label: a named entity with non-ASCII characters
input: "&sígma;"
output: [Text(text="&sígma;")]
---
name: invalid_numeric_out_of_range_1
label: a numeric entity that is out of range: < 1
input: "�"
output: [Text(text="�")]
---
name: invalid_numeric_out_of_range_2
label: a hex numeric entity that is out of range: < 1
input: "�"
output: [Text(text="�")]
---
name: invalid_numeric_out_of_range_3
label: a numeric entity that is out of range: > 0x10FFFF
input: "�"
output: [Text(text="�")]
---
name: invalid_numeric_out_of_range_4
label: a hex numeric entity that is out of range: > 0x10FFFF
input: "�"
output: [Text(text="�")]
---
name: invalid_partial_amp
label: invalid entities: just an ampersand
input: "&"
output: [Text(text="&")]
---
name: invalid_partial_amp_semicolon
label: invalid entities: an ampersand and semicolon
input: "&;"
output: [Text(text="&;")]
---
name: invalid_partial_amp_pound
label: invalid entities: just an ampersand, pound sign
input: "&#"
output: [Text(text="&#")]
---
name: invalid_partial_amp_pound_x
label: invalid entities: just an ampersand, pound sign, x
input: "&#x"
output: [Text(text="&#x")]
---
name: invalid_partial_amp_pound_semicolon
label: invalid entities: an ampersand, pound sign, and semicolon
input: "&#;"
output: [Text(text="&#;")]
---
name: invalid_partial_amp_pound_x_semicolon
label: invalid entities: an ampersand, pound sign, x, and semicolon
input: "&#x;"
output: [Text(text="&#x;")]
---
name: invalid_partial_amp_pound_numbers
label: invalid entities: an ampersand, pound sign, numbers
input: "{"
output: [Text(text="{")]
---
name: invalid_partial_amp_pound_x_semicolon
label: invalid entities: an ampersand, pound sign, and x
input: "&#x"
output: [Text(text="&#x")]
---
name: invalid_zeros_before_named
label: invalid entities: zeros before a valid named entity
input: "&000nbsp;"
output: [Text(text="&000nbsp;")]
|