@@ -1702,15 +1702,14 @@ Object {
1702
1702
}
1703
1703
` ;
1704
1704
1705
- exports [` 08 Unusual element names 1` ] = `
1705
+ exports [` 08 Unusual HTML names, positive 1` ] = `
1706
1706
Object {
1707
- " buffer" : " /**[n] * [<]a1/[>][n] * [<]a-a[>][n] * [<]a--a[>][n] * [<]a.2 [>][n] */" ,
1707
+ " buffer" : " /**[n] * [<]a1/[>][n] * [<]a-a[>][n] * [<]a--9- [>][n] */" ,
1708
1708
" gaps" : Array [],
1709
1709
" lines" : Array [
1710
1710
" [<]a1/[>]" ,
1711
1711
" [<]a-a[>]" ,
1712
- " [<]a--a[>]" ,
1713
- " [<]a.2[>]" ,
1712
+ " [<]a--9-[>]" ,
1714
1713
],
1715
1714
" logMessages" : Array [],
1716
1715
" nodes" : Object {
@@ -1783,7 +1782,7 @@ Object {
1783
1782
},
1784
1783
Object {
1785
1784
" kind" : " Excerpt: HtmlStartTag_Name" ,
1786
- " nodeExcerpt" : " a--a " ,
1785
+ " nodeExcerpt" : " a--9- " ,
1787
1786
},
1788
1787
Object {
1789
1788
" kind" : " Excerpt: HtmlStartTag_ClosingDelimiter" ,
@@ -1800,19 +1799,154 @@ Object {
1800
1799
},
1801
1800
],
1802
1801
},
1802
+ ],
1803
+ },
1804
+ ],
1805
+ },
1806
+ ],
1807
+ },
1808
+ }
1809
+ ` ;
1810
+
1811
+ exports [` 09 Unusual HTML names, negative 1` ] = `
1812
+ Object {
1813
+ " buffer" : " /**[n] * [<]1a/[>][n] * [<]a.a[>][n] * [<]_a[>][n] */" ,
1814
+ " gaps" : Array [],
1815
+ " lines" : Array [
1816
+ " [<]1a/[>]" ,
1817
+ " [<]a.a[>]" ,
1818
+ " [<]_a[>]" ,
1819
+ ],
1820
+ " logMessages" : Array [
1821
+ " (2,4): Invalid HTML element: An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens" ,
1822
+ " (2,8): The \\ " > \\" character should be escaped using a backslash to avoid confusion with an HTML tag" ,
1823
+ " (3,4): Invalid HTML element: An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens" ,
1824
+ " (3,8): The \\ " > \\" character should be escaped using a backslash to avoid confusion with an HTML tag" ,
1825
+ " (4,4): Invalid HTML element: An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens" ,
1826
+ " (4,7): The \\ " > \\" character should be escaped using a backslash to avoid confusion with an HTML tag" ,
1827
+ ],
1828
+ " nodes" : Object {
1829
+ " kind" : " Comment" ,
1830
+ " nodes" : Array [
1831
+ Object {
1832
+ " kind" : " Section" ,
1833
+ " nodes" : Array [
1834
+ Object {
1835
+ " kind" : " Paragraph" ,
1836
+ " nodes" : Array [
1803
1837
Object {
1804
- " kind" : " HtmlStartTag" ,
1838
+ " errorLocation" : " 1a" ,
1839
+ " errorLocationPrecedingToken" : " <" ,
1840
+ " errorMessage" : " Invalid HTML element: An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens" ,
1841
+ " kind" : " ErrorText" ,
1805
1842
" nodes" : Array [
1806
1843
Object {
1807
- " kind" : " Excerpt: HtmlStartTag_OpeningDelimiter " ,
1844
+ " kind" : " Excerpt: ErrorText " ,
1808
1845
" nodeExcerpt" : " [<]" ,
1809
1846
},
1847
+ ],
1848
+ },
1849
+ Object {
1850
+ " kind" : " PlainText" ,
1851
+ " nodes" : Array [
1852
+ Object {
1853
+ " kind" : " Excerpt: PlainText" ,
1854
+ " nodeExcerpt" : " 1a/" ,
1855
+ },
1856
+ ],
1857
+ },
1858
+ Object {
1859
+ " errorLocation" : " [>]" ,
1860
+ " errorLocationPrecedingToken" : " /" ,
1861
+ " errorMessage" : " The [q][>][q] character should be escaped using a backslash to avoid confusion with an HTML tag" ,
1862
+ " kind" : " ErrorText" ,
1863
+ " nodes" : Array [
1810
1864
Object {
1811
- " kind" : " Excerpt: HtmlStartTag_Name " ,
1812
- " nodeExcerpt" : " a.2 " ,
1865
+ " kind" : " Excerpt: ErrorText " ,
1866
+ " nodeExcerpt" : " [>] " ,
1813
1867
},
1868
+ ],
1869
+ },
1870
+ Object {
1871
+ " kind" : " SoftBreak" ,
1872
+ " nodes" : Array [
1814
1873
Object {
1815
- " kind" : " Excerpt: HtmlStartTag_ClosingDelimiter" ,
1874
+ " kind" : " Excerpt: SoftBreak" ,
1875
+ " nodeExcerpt" : " [n]" ,
1876
+ },
1877
+ ],
1878
+ },
1879
+ Object {
1880
+ " errorLocation" : " a.a" ,
1881
+ " errorLocationPrecedingToken" : " <" ,
1882
+ " errorMessage" : " Invalid HTML element: An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens" ,
1883
+ " kind" : " ErrorText" ,
1884
+ " nodes" : Array [
1885
+ Object {
1886
+ " kind" : " Excerpt: ErrorText" ,
1887
+ " nodeExcerpt" : " [<]" ,
1888
+ },
1889
+ ],
1890
+ },
1891
+ Object {
1892
+ " kind" : " PlainText" ,
1893
+ " nodes" : Array [
1894
+ Object {
1895
+ " kind" : " Excerpt: PlainText" ,
1896
+ " nodeExcerpt" : " a.a" ,
1897
+ },
1898
+ ],
1899
+ },
1900
+ Object {
1901
+ " errorLocation" : " [>]" ,
1902
+ " errorLocationPrecedingToken" : " a" ,
1903
+ " errorMessage" : " The [q][>][q] character should be escaped using a backslash to avoid confusion with an HTML tag" ,
1904
+ " kind" : " ErrorText" ,
1905
+ " nodes" : Array [
1906
+ Object {
1907
+ " kind" : " Excerpt: ErrorText" ,
1908
+ " nodeExcerpt" : " [>]" ,
1909
+ },
1910
+ ],
1911
+ },
1912
+ Object {
1913
+ " kind" : " SoftBreak" ,
1914
+ " nodes" : Array [
1915
+ Object {
1916
+ " kind" : " Excerpt: SoftBreak" ,
1917
+ " nodeExcerpt" : " [n]" ,
1918
+ },
1919
+ ],
1920
+ },
1921
+ Object {
1922
+ " errorLocation" : " _a" ,
1923
+ " errorLocationPrecedingToken" : " <" ,
1924
+ " errorMessage" : " Invalid HTML element: An HTML name must be an ASCII letter followed by zero or more letters, digits, or hyphens" ,
1925
+ " kind" : " ErrorText" ,
1926
+ " nodes" : Array [
1927
+ Object {
1928
+ " kind" : " Excerpt: ErrorText" ,
1929
+ " nodeExcerpt" : " [<]" ,
1930
+ },
1931
+ ],
1932
+ },
1933
+ Object {
1934
+ " kind" : " PlainText" ,
1935
+ " nodes" : Array [
1936
+ Object {
1937
+ " kind" : " Excerpt: PlainText" ,
1938
+ " nodeExcerpt" : " _a" ,
1939
+ },
1940
+ ],
1941
+ },
1942
+ Object {
1943
+ " errorLocation" : " [>]" ,
1944
+ " errorLocationPrecedingToken" : " _a" ,
1945
+ " errorMessage" : " The [q][>][q] character should be escaped using a backslash to avoid confusion with an HTML tag" ,
1946
+ " kind" : " ErrorText" ,
1947
+ " nodes" : Array [
1948
+ Object {
1949
+ " kind" : " Excerpt: ErrorText" ,
1816
1950
" nodeExcerpt" : " [>]" ,
1817
1951
},
1818
1952
],
0 commit comments