Repository navigation
docs: define terms and tighten the attributes and dynamic components pages - #781
Merged
Merged
Conversation
…c components pages Say what "a page that uses Vue", "a component with its own JavaScript" and "request data" mean where each page first uses them. On the HTML attributes page, open the handlers section with the rule and the fix and move the `ref` names to the end of it. On the dynamic components page, trim the `<c-element>` handler bullet, name the error it raises, and stop calling the handler refusal the only difference. Shorten the handlers heading, and name the subject in the "Tags <c-element> refuses" heading. Both keep their old anchors, and the one link text that quoted a title is updated. The `c-onclick` sentence now says what the code does: it raises TypeError on any page that uses Vue, not only in a component with `js`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KUhrHXH1mNfRCnPcsQt7ED
JuroOravec
added a commit
that referenced
this pull request
Nov 18, 2026
) The error told readers to use a Vue @click "in a component with js". Citry turns Vue on for a page when a template uses @click, so the advice holds on any page. This matches the corrected docs from #781. Claude-Session: https://claude.ai/code/session_01KUhrHXH1mNfRCnPcsQt7ED Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed
Readability edits on the HTML attributes and Dynamic components pages, plus a one-line definition of "request data" where pages use it without saying what it is. No behavior changes, no code changes, and no changelog entry.
HTML attributes page
c-bindrefuseson*,innerHTML,outerHTMLandsrcdoc) and the fix (write the handler in the template). Therefnames moved to its last paragraph, because few readers need them.js, or uses a Vue directive such as@click), with a link to When Vue turns on. The same page now says what "its own JavaScript (js)" means where therefrule uses it.Dynamic components page
<c-element>limits list is reworded, not shortened: it states the refusal and its error (ValueError) first, in plain words, then the fix. It keeps every fact (the exact list of refused names, the "wrote it or passed it in" rule, the@clickandc-ifalternatives, the fixed-isexception), so cutting it further would have dropped one.<c-element>, because the limits list names more.jsand no server events", named two of the five triggers on that page.<c-element>refuses", so it names its subject in the sidebar.Anchors and links. Both renamed headings keep their old ids (
#write-handlers-in-the-template,#refused-tags). The one page that quoted the first heading,syntax/attributes.md, has its link text updated."Request data". Seven pages used the term at first use with no explanation:
advanced/extensions.md,advanced/hooks.md,security.md,i18n/catalogs.md,i18n/messages.md,i18n/rich-messages.mdandvue/slots.md. Each now says "anything a visitor sends", most with the examples "a query parameter, form field, or header".ui-library/index.mdhad a full definition worded "any value a visitor controls"; it now uses the same opening words. Pages that already name the examples at first use are unchanged. The repeated explanation further downextensions.mdis dropped.One claim made accurate
The old sentence said
c-onclickraisesTypeError"in a component withjs". The code raises it on any page where Vue is on. I rendered each case withcitry1.0.1:js, with a Vue directive, or withjs_data(): raises;The page now says "on a page that uses Vue". The check is in
_vue/direct_capture.pyand_vue/leaf_program.py, andUnsupportedPreparedViewis aTypeError.Not done
C_ELEMENT_HANDLER_FIXinattrs.pystill says "Use a Vue @click in a component with js". It is code, so it is left for a separate change. The docs now say@clickalone adds Vue.svg/mathandtextarea/titleparagraphs under "Tags<c-element>refuses" describe tags<c-element>can render. Splitting them into their own subsections would add anchors, so it is left out.i18n/rich-messages.mdhas an existing 26-character heading ("Check a URL from a message"). It is outside these suggestions.Checks
python -m docs_site build-checkon this branch againstorigin/main: the same twosnippet_patherrors on both (the sparse worktree has noLICENSEorCODE_OF_CONDUCT.md), and theheading_lengthnotes drop from 29 to 28 (the renamed heading is no longer listed).when-vue-turns-on,write-handlers-in-the-template,refused-tagsandc-element-limitsexist, and that the new links render. The link guard checks pages, not fragments, so I checked the ids by hand.git grepfinds no page that still quotes the old heading titles. Archived versions underdocs_site/versions/are snapshots and unchanged.<c-element c-is="tag" onclick="x">(andONCLICK,innerHTML):ValueError. A fixed<c-element is="div" onclick="x">renders.docs-cold-readeragent twice (it also ran the prose pass) and a separate fact and prose pass by another agent. Their findings are folded in; the two points above under "Not done" are the ones I chose to leave.Versioning check
Docs only, under
docs_site/content/. Nothing in the 1.x promise is touched, and no package needs a new release.🤖 Generated with Claude Code
https://claude.ai/code/session_01KUhrHXH1mNfRCnPcsQt7ED