LearnNewsExamplesServices
Frontmatter
id7138
titleParser: Interpolation and Data Type Handling
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 31, 2025, 9:33 AM
updatedAtJul 31, 2025, 12:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/7138
authortobiu
commentsCount1
parentIssue7130
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 31, 2025, 12:25 PM

Parser: Interpolation and Data Type Handling

Closed v10.3.0 enhancement
tobiu
tobiu commented on Jul 31, 2025, 9:33 AM

Description: Enhance the parse5 processor to correctly handle the mapping of interpolated values from the tagged template literal to their corresponding VDOM properties, respecting their original data types.

Implementation Details:

  • The parser must receive not only the HTML string but also the array of interpolated values from the template literal.
  • When an attribute value is a placeholder for an interpolated value (e.g., renderer="$[0]", where $[0] maps to the first expression), the parser must assign the raw expression value (the function object) to the VDOM config, not the placeholder string.
  • Implement logic to correctly handle and assign functions, objects, arrays, and other non-string data types to the appropriate VDOM properties.
tobiu assigned to @tobiu on Jul 31, 2025, 9:33 AM
tobiu added the enhancement label on Jul 31, 2025, 9:33 AM
tobiu added parent issue #7130 on Jul 31, 2025, 9:33 AM
tobiu
tobiu Jul 31, 2025, 12:25 PM

resolved via the other subs commits

tobiu closed this issue on Jul 31, 2025, 12:25 PM