You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 4, 2022. It is now read-only.
Generating the tree structure fails for HTML that has a comment within a header or paragraph:
<h1>Hello World!<!-- How are you? --></h1>
The comment gets added to the header as a formatting element, as it should be, but something goes wrong when converting the comment from an Ignored node to a FormattingElement.
It currently errors on the calculation of the start- and end position of the formatting elements.
Specifically on this line, where it fails to get the start tag.
Generating the tree structure fails for HTML that has a comment within a header or paragraph:
The comment gets added to the header as a formatting element, as it should be, but something goes wrong when converting the comment from an
Ignorednode to aFormattingElement.It currently errors on the calculation of the start- and end position of the formatting elements.
Specifically on this line, where it fails to get the start tag.
YoastSEO.js/src/tree/builder/cleanup/calculateTextIndices.js
Line 116 in 545ce68
More importantly,
parse5recognizesHow are you?in the example below as a comment: