WebReflection / linkedom

A triple-linked lists based DOM implementation.
https://webreflection.medium.com/linkedom-a-jsdom-alternative-53dd8f699311
ISC License
1.66k stars 80 forks source link

Input value is null #166

Closed emmby closed 2 years ago

emmby commented 2 years ago

First time user, hit an unexpected behavior when trying to access the value of input elements. Other attributes like id are just fine, but value does not seem to be present in the parsed output.

// typescript
var input = <HTMLInputElement>parseHTML("<input id='foo' value='bar'/>").document.children[0];
console.log(input.id);       // foo
console.log(input.value);    // undefined

Is this expected behavior?

WebReflection commented 2 years ago

It's up 👋

emmby commented 2 years ago

works great, thanks for the very quick turnaround!

WebReflection commented 2 years ago

Thank you for the report 👍