When an <h1> element contains a direct text node followed by a <span> child, Telegram's Instant View only extracts the direct text node as the article title. The content inside the <span> is silently dropped and does not appear in the IV preview.
Affected HTML structure: html<h1 data-testid="rich-title" class="RichTitle-module_root__U5XQu"> Война <span> 1511-й день. Орбан потерял власть в Венгрии — но это не значит, что Украина быстро получит 90 миллиардов евро от ЕС. Процесс займет много недель (а ещё есть риск вето Словакии)</span> </h1>
Observed behavior: Only the direct text node (Война) and the first few characters of the <span> text appear as the article title in Instant View. Everything after that is cut off. Expected behavior: The full concatenated text of the <h1> — including all child inline elements — should be rendered as the complete article title.
Root cause hypothesis: The IV template engine appears to read only the direct text node of <h1> when extracting the title, without recursively
Type of issue
IV not generated for target page
Reported
Apr 20 at 9:19 AM
Log In
Log in here to create Instant View templates. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.
Affected HTML structure:
html<h1 data-testid="rich-title" class="RichTitle-module_root__U5XQu">
Война
<span> 1511-й день. Орбан потерял власть в Венгрии — но это не значит, что Украина быстро получит 90 миллиардов евро от ЕС. Процесс займет много недель (а ещё есть риск вето Словакии)</span>
</h1>
Observed behavior: Only the direct text node (Война) and the first few characters of the <span> text appear as the article title in Instant View. Everything after that is cut off.
Expected behavior: The full concatenated text of the <h1> — including all child inline elements — should be rendered as the complete article title.
Root cause hypothesis: The IV template engine appears to read only the direct text node of <h1> when extracting the title, without recursively