Preserve native interaction semantics
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user