Preserve native interaction semantics

This commit is contained in:
tmk241
2026-09-01 09:21:23 +02:00
parent 3323aaecd6
commit 53f0a5db1a
11 changed files with 135 additions and 115 deletions
+5 -5
View File
@@ -101,7 +101,7 @@ impl HtmlInspector {
/// Select elements carrying the runtime marker for a typed handle.
pub fn select_handle<I>(&self, handle: Handle<I>) -> HtmlSelection {
self.selection_or_panic(&attribute_selector("data-hid", &handle.to_string()))
self.selection_or_panic(&attribute_selector("data-hemx-action", &handle.to_string()))
}
/// Assert that rendered HTML contains a typed handle marker.
@@ -299,10 +299,10 @@ impl Error for HtmlInspectionError {}
fn resource_attribute(kind: ResourceKind) -> &'static str {
match kind {
ResourceKind::Slot => "data-sid",
ResourceKind::Atom => "data-aid",
ResourceKind::Handle => "data-hid",
ResourceKind::Form => "data-fid",
ResourceKind::Slot => "data-hemx-resource",
ResourceKind::Atom => "data-hemx-resource",
ResourceKind::Handle => "data-hemx-action",
ResourceKind::Form => "data-hemx-resource",
}
}
+1 -1
View File
@@ -403,7 +403,7 @@ impl EffectInspector {
/// Assert that generated keyed-row metadata for a key is absent from payloads.
pub fn payload_excludes_key(&self, key: impl ToString) -> bool {
self.payload_excludes(&format!("data-key=\"{}\"", key.to_string()))
self.payload_excludes(&format!("data-hemx-key=\"{}\"", key.to_string()))
}
/// Return HTML for a generated target containing text, without exposing raw payloads.