From c8635c130c7363bd7bbc81440d4c1fceaf15d000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Uriel=20Mart=C3=ADnez=20Castillo?= Date: Sun, 19 Oct 2025 21:18:24 +0200 Subject: [PATCH 1/3] docs: update v-text directive details for clarity Clarified usage of v-text directive regarding textContent updates. --- src/api/built-in-directives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/built-in-directives.md b/src/api/built-in-directives.md index 8afb0bfc48..f2b0950cdb 100644 --- a/src/api/built-in-directives.md +++ b/src/api/built-in-directives.md @@ -8,7 +8,7 @@ Update the element's text content. - **Details** - `v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update the part of `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead. + `v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update only part of the `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead (ie. `Keep this but update a {{dynamicPortion}}`). - **Example** From 8c7fb857e75e512dcc6c11453aff4e499dd60198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Uriel=20Mart=C3=ADnez=20Castillo?= Date: Sun, 19 Oct 2025 21:29:18 +0200 Subject: [PATCH 2/3] Update explanation --- src/api/built-in-directives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/built-in-directives.md b/src/api/built-in-directives.md index f2b0950cdb..1870d2ce9f 100644 --- a/src/api/built-in-directives.md +++ b/src/api/built-in-directives.md @@ -8,7 +8,7 @@ Update the element's text content. - **Details** - `v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update only part of the `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead (ie. `Keep this but update a {{dynamicPortion}}`). + `v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update only part of the `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead (ie. Keep this but update a {{dynamicPortion}}). - **Example** From bbb755b1927f172f1b2da34b32831a29116ac5b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20Uriel=20Mart=C3=ADnez=20Castillo?= Date: Sun, 19 Oct 2025 21:35:05 +0200 Subject: [PATCH 3/3] Fix formatting in v-text documentation example --- src/api/built-in-directives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/built-in-directives.md b/src/api/built-in-directives.md index 1870d2ce9f..57ad4dd055 100644 --- a/src/api/built-in-directives.md +++ b/src/api/built-in-directives.md @@ -8,7 +8,7 @@ Update the element's text content. - **Details** - `v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update only part of the `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead (ie. Keep this but update a {{dynamicPortion}}). + `v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update only part of the `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead (ie. `Keep this but update a {{dynamicPortion}}`). - **Example**