File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 var j = i + 1
5555 this . _elTitleElement = this . elTitleElements [ i ]
5656 this . _elTitleElementName = this . _elTitleElement . tagName
57+ this . _elTitleElementTitle = this . _elTitleElement . textContent . replace ( / " / g, '"' )
5758 this . _elTitleElementText = ( typeof this . process === 'function' ? this . process ( this . _elTitleElement ) : this . _elTitleElement . innerHTML ) . replace ( / < (?: .| \n ) * ?> / gm, '' )
5859 var id = this . _elTitleElement . getAttribute ( 'id' )
5960 if ( ! id ) {
6364 id = '#' + id
6465 }
6566
66- this . tocContent += '<li><a href="' + id + '">' + this . _elTitleElementText + '</a>'
67+ this . tocContent += '<li><a href="' + id + '" title="' + this . _elTitleElementTitle + '" >' + this . _elTitleElementText + '</a>'
6768
6869 if ( j !== this . _elTitleElementsLen ) {
6970 this . _elNextTitleElementName = this . elTitleElements [ j ] . tagName
You can’t perform that action at this time.
0 commit comments