peerigon / peerigon/angular-expressions

Could not parse DOM element properties

Open
#21 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
100
Forks
24
Avg merge
1h 9m
Merged PRs (30d)
6

Description

In my case, I give a DOM element to scope, and want to parse out the value property, but not work:

const el = document.querySelector('#input')
const ev = expressions.compile('el.value')
console.log(ev({ el }))

I get undefined, could you please to fix this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided document.querySelector and expressions.compile('el.value') example. Trace the expression evaluation entry point to determine why a DOM element's value property returns undefined, then verify that the example evaluates to the element's value without breaking other property access.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.