-
Notifications
You must be signed in to change notification settings - Fork 354
Add dedicated docs for innerHTML and textContent #1105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
LadyBluenotes
merged 14 commits into
solidjs:main
from
amirhhashemi:add-dedicated-innerhtml-and-textcontent-docs
Mar 8, 2025
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0b2abe1
Add dedicated docs for innerHTML and textContent
amirhhashemi e8f8ef3
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 7ba9d85
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 11024f1
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] a8fbe76
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] d16c285
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] c58450b
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 78073e6
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 40f4e39
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 5b1ee4b
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 5e35167
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 83b7cfd
Merge branch 'main' into add-dedicated-innerhtml-and-textcontent-docs
kodiakhq[bot] 2b90b63
add callout
amirhhashemi b17b697
use :::caution
amirhhashemi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
src/routes/reference/jsx-attributes/innerhtml-or-textcontent.mdx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| title: innerHTML | ||
| --- | ||
|
|
||
| The `innerHTML` attribute is equivalent to the [`innerHTML` DOM property](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML). | ||
| This attribute replaces all existing nodes of the element with new nodes generated by parsing the provided string as HTML. | ||
|
|
||
| Note that using `innerHTML` with unsanitized user-supplied data can introduce security vulnerabilities. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| title: textContent | ||
| --- | ||
|
|
||
| The `textContent` attribute is equivalent to the [`textContent` DOM property](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent). | ||
| This attribute replaces all existing child nodes of the element with a single text node containing the provided string. | ||
|
|
||
| Using `textContent` can improve performance when the element's children are known to be exclusively text, as it bypasses the generic diffing process. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.