# File lib/asciidoctor/converter/html5.rb, line 1057
    def inline_footnote node
      if (index = node.attr 'index')
        if node.type == :xref
          %(<sup class="footnoteref">[<a class="footnote" href="#_footnote_#{index}" title="View footnote.">#{index}</a>]</sup>)
        else
          id_attr = node.id ? %( id="_footnote_#{node.id}") : nil
          %(<sup class="footnote"#{id_attr}>[<a id="_footnoteref_#{index}" class="footnote" href="#_footnote_#{index}" title="View footnote.">#{index}</a>]</sup>)
        end
      elsif node.type == :xref
        %(<sup class="footnoteref red" title="Unresolved footnote reference.">[#{node.text}]</sup>)
      end
    end