|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- 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_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")]
|