docs(kanban): remove selector example
Replace the last querySelector mention in the north-star walkthrough with selector-free prose and extend example docs contracts to forbid selector APIs. req: examples/003 req: runtime/001
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ Notes on keyed scopes:
|
|||||||
|
|
||||||
- `h-for="column in &self.columns" h-key="column.id"` — **required** for slhx-addressable nodes inside
|
- `h-for="column in &self.columns" h-key="column.id"` — **required** for slhx-addressable nodes inside
|
||||||
- `h-for="card in &column.cards" h-key="card.id"` — **required**
|
- `h-for="card in &column.cards" h-key="card.id"` — **required**
|
||||||
- A slot inside a keyed loop is addressed as a generated keyed resource, never `querySelector(".card:nth-child(3)")`
|
- A slot inside a keyed loop is addressed as a generated keyed resource, never by selector strings or positional DOM targeting
|
||||||
- Without `h-key`, slhx rejects the build — no runtime selector fallback
|
- Without `h-key`, slhx rejects the build — no runtime selector fallback
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -119,6 +119,8 @@ fn canonical_example_docs_do_not_teach_low_level_plumbing() {
|
|||||||
"SafeHtml::trusted",
|
"SafeHtml::trusted",
|
||||||
".render(&",
|
".render(&",
|
||||||
"addEventListener(",
|
"addEventListener(",
|
||||||
|
"querySelector",
|
||||||
|
"querySelectorAll",
|
||||||
];
|
];
|
||||||
let mut failures = Vec::new();
|
let mut failures = Vec::new();
|
||||||
scan_examples(&examples, &mut |path, text| {
|
scan_examples(&examples, &mut |path, text| {
|
||||||
|
|||||||
Reference in New Issue
Block a user