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
The tutorial for HTML tags in Svelte uses three dots (...) as placeholders in the {@html ...} example. This can be confusing for readers, especially those familiar with ECMAScript, where ... has specific meaning (e.g., the spread/rest operator).
The dots are not part of the Svelte syntax or functionality; they simply indicate that a variable should be used there. However, this isn't explicitly stated, and it could mislead readers into thinking the ... is required syntax.
Suggested Fix:
Update the tutorial to replace the placeholder ... with a meaningful variable name (e.g., htmlContent) and clarify in the explanation that a variable containing the HTML string should be used.
Current Example:
<p>{@html ...}</p>
Suggested Example:
<p>{@html htmlContent}</p>
This will make the tutorial clearer and avoid potential misunderstandings.
The text was updated successfully, but these errors were encountered:
The tutorial for HTML tags in Svelte uses three dots (...) as placeholders in the {@html ...} example. This can be confusing for readers, especially those familiar with ECMAScript, where ... has specific meaning (e.g., the spread/rest operator).
The dots are not part of the Svelte syntax or functionality; they simply indicate that a variable should be used there. However, this isn't explicitly stated, and it could mislead readers into thinking the ... is required syntax.
Suggested Fix:
Update the tutorial to replace the placeholder ... with a meaningful variable name (e.g., htmlContent) and clarify in the explanation that a variable containing the HTML string should be used.
Current Example:
<p>{@html ...}</p>
Suggested Example:
<p>{@html htmlContent}</p>
This will make the tutorial clearer and avoid potential misunderstandings.
The text was updated successfully, but these errors were encountered: