@@ -982,28 +982,28 @@ fn footnotes() {
982982 "[^unused]: This is not used.\n "
983983 ) ,
984984 concat!(
985- "<p>Here is a[^nowhere] footnote reference,<sup class=\" footnote-ref\" ><a href=\" #fn1 \" \
986- id=\" fnref1 \" >1</a></sup> and another.<sup class=\" footnote-ref\" ><a \
987- href=\" #fn2 \" id=\" fnref2 \" >2</a></sup></p>\n ",
988- "<p>This is another note.<sup class=\" footnote-ref\" ><a href=\" #fn3 \" \
989- id=\" fnref3 \" >3</a></sup></p>\n ",
985+ "<p>Here is a[^nowhere] footnote reference,<sup class=\" footnote-ref\" ><a href=\" #fn-1 \" \
986+ id=\" fnref-1 \" data-footnote-ref >1</a></sup> and another.<sup class=\" footnote-ref\" ><a \
987+ href=\" #fn-2 \" id=\" fnref-2 \" data-footnote-ref >2</a></sup></p>\n ",
988+ "<p>This is another note.<sup class=\" footnote-ref\" ><a href=\" #fn-3 \" \
989+ id=\" fnref-3 \" data-footnote-ref >3</a></sup></p>\n ",
990990 "<p>This is regular content.</p>\n " ,
991- "<section class=\" footnotes\" >\n " ,
991+ "<section class=\" footnotes\" data-footnotes >\n " ,
992992 "<ol>\n " ,
993- "<li id=\" fn1 \" >\n " ,
994- "<p>Here is the footnote. <a href=\" #fnref1 \" \
995- class=\" footnote-backref\" >↩</a></p>\n ",
993+ "<li id=\" fn-1 \" >\n " ,
994+ "<p>Here is the footnote. <a href=\" #fnref-1 \" \
995+ class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a></p>\n ",
996996 "</li>\n " ,
997- "<li id=\" fn2 \" >\n " ,
997+ "<li id=\" fn-2 \" >\n " ,
998998 "<p>Here's one with multiple blocks.</p>\n " ,
999999 "<p>Subsequent paragraphs are indented.</p>\n " ,
10001000 "<pre><code>code\n " ,
10011001 "</code></pre>\n " ,
1002- "<a href=\" #fnref2 \" class=\" footnote-backref\" >↩</a>\n " ,
1002+ "<a href=\" #fnref-2 \" class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a>\n " ,
10031003 "</li>\n " ,
1004- "<li id=\" fn3 \" >\n " ,
1005- "<p>Hi. <a href=\" #fnref3 \" \
1006- class=\" footnote-backref\" >↩</a></p>\n ",
1004+ "<li id=\" fn-3 \" >\n " ,
1005+ "<p>Hi. <a href=\" #fnref-3 \" \
1006+ class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a></p>\n ",
10071007 "</li>\n " ,
10081008 "</ol>\n " ,
10091009 "</section>\n "
@@ -1017,12 +1017,12 @@ fn footnote_does_not_eat_exclamation() {
10171017 [ extension. footnotes] ,
10181018 concat!( "Here's my footnote![^a]\n " , "\n " , "[^a]: Yep.\n " ) ,
10191019 concat!(
1020- "<p>Here's my footnote!<sup class=\" footnote-ref\" ><a href=\" #fn1 \" \
1021- id=\" fnref1 \" >1</a></sup></p>\n ",
1022- "<section class=\" footnotes\" >\n " ,
1020+ "<p>Here's my footnote!<sup class=\" footnote-ref\" ><a href=\" #fn-1 \" \
1021+ id=\" fnref-1 \" data-footnote-ref >1</a></sup></p>\n ",
1022+ "<section class=\" footnotes\" data-footnotes >\n " ,
10231023 "<ol>\n " ,
1024- "<li id=\" fn1 \" >\n " ,
1025- "<p>Yep. <a href=\" #fnref1 \" class=\" footnote-backref\" >↩</a></p>\n " ,
1024+ "<li id=\" fn-1 \" >\n " ,
1025+ "<p>Yep. <a href=\" #fnref-1 \" class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a></p>\n " ,
10261026 "</li>\n " ,
10271027 "</ol>\n " ,
10281028 "</section>\n "
@@ -1043,7 +1043,7 @@ fn footnote_in_table() {
10431043 "\n " ,
10441044 "[^1]: a footnote\n " ,
10451045 ) , concat!(
1046- "<p>A footnote in a paragraph<sup class=\" footnote-ref\" ><a href=\" #fn1 \" id=\" fnref1 \" >1</a></sup></p>\n " ,
1046+ "<p>A footnote in a paragraph<sup class=\" footnote-ref\" ><a href=\" #fn-1 \" id=\" fnref-1 \" data-footnote-ref >1</a></sup></p>\n " ,
10471047 "<table>\n " ,
10481048 "<thead>\n " ,
10491049 "<tr>\n " ,
@@ -1053,15 +1053,15 @@ fn footnote_in_table() {
10531053 "</thead>\n " ,
10541054 "<tbody>\n " ,
10551055 "<tr>\n " ,
1056- "<td>foot <sup class=\" footnote-ref\" ><a href=\" #fn1 \" id=\" fnref1 \" >1</a></sup></td>\n " ,
1056+ "<td>foot <sup class=\" footnote-ref\" ><a href=\" #fn-1 \" id=\" fnref-1 \" data-footnote-ref >1</a></sup></td>\n " ,
10571057 "<td>note</td>\n " ,
10581058 "</tr>\n " ,
10591059 "</tbody>\n " ,
10601060 "</table>\n " ,
1061- "<section class=\" footnotes\" >\n " ,
1061+ "<section class=\" footnotes\" data-footnotes >\n " ,
10621062 "<ol>\n " ,
1063- "<li id=\" fn1 \" >\n " ,
1064- "<p>a footnote <a href=\" #fnref1 \" class=\" footnote-backref\" >↩</a></p>\n " ,
1063+ "<li id=\" fn-1 \" >\n " ,
1064+ "<p>a footnote <a href=\" #fnref-1 \" class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a></p>\n " ,
10651065 "</li>\n " ,
10661066 "</ol>\n " ,
10671067 "</section>\n " ,
@@ -1083,20 +1083,20 @@ fn footnote_with_superscript() {
10831083 "[^ref]: Here is another footnote.\n " ,
10841084 ) ,
10851085 concat!(
1086- "<p>Here is a footnote reference.<sup class=\" footnote-ref\" ><a href=\" #fn1 \" \
1087- id=\" fnref1 \" >1</a></sup></p>\n ",
1088- "<p>Here is a longer footnote reference.<sup class=\" footnote-ref\" ><a href=\" #fn2 \" \
1089- id=\" fnref2 \" >2</a></sup></p>\n ",
1086+ "<p>Here is a footnote reference.<sup class=\" footnote-ref\" ><a href=\" #fn-1 \" \
1087+ id=\" fnref-1 \" data-footnote-ref >1</a></sup></p>\n ",
1088+ "<p>Here is a longer footnote reference.<sup class=\" footnote-ref\" ><a href=\" #fn-2 \" \
1089+ id=\" fnref-2 \" data-footnote-ref >2</a></sup></p>\n ",
10901090 "<p>e = mc<sup>2</sup>.</p>\n " ,
1091- "<section class=\" footnotes\" >\n " ,
1091+ "<section class=\" footnotes\" data-footnotes >\n " ,
10921092 "<ol>\n " ,
1093- "<li id=\" fn1 \" >\n " ,
1094- "<p>Here is the footnote. <a href=\" #fnref1 \" \
1095- class=\" footnote-backref\" >↩</a></p>\n ",
1093+ "<li id=\" fn-1 \" >\n " ,
1094+ "<p>Here is the footnote. <a href=\" #fnref-1 \" \
1095+ class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a></p>\n ",
10961096 "</li>\n " ,
1097- "<li id=\" fn2 \" >\n " ,
1098- "<p>Here is another footnote. <a href=\" #fnref2 \" \
1099- class=\" footnote-backref\" >↩</a></p>\n ",
1097+ "<li id=\" fn-2 \" >\n " ,
1098+ "<p>Here is another footnote. <a href=\" #fnref-2 \" \
1099+ class=\" footnote-backref\" data-footnote-backref aria-label= \" Back to content \" >↩</a></p>\n ",
11001100 "</li>\n " ,
11011101 "</ol>\n " ,
11021102 "</section>\n "
0 commit comments