Bug: element_info serde camelCase mismatch #28

Open
opened 2026-06-08 14:12:30 +00:00 by fatmaebrahim · 0 comments
Member

Description:

The JavaScript in the browser returns field names like tagName and textContent (camelCase — the JS convention). But Rust uses tag_name and text_content (snake_case — the Rust convention). When serde tried to deserialize the JS response, it looked for tag_name in the JSON, couldn’t find it (because the JSON had tagName), and errored out.

### Description: The JavaScript in the browser returns field names like tagName and textContent (camelCase — the JS convention). But Rust uses tag_name and text_content (snake_case — the Rust convention). When serde tried to deserialize the JS response, it looked for tag_name in the JSON, couldn’t find it (because the JSON had tagName), and errored out.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_browser#28
No description provided.