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

BUG: className setter crash when value is number #224

Closed Havunen closed 12 months ago

Havunen commented 1 year ago

dom.className = 123 should cast the value to string before applying it

TypeError: value.split is not a function

WebReflection commented 12 months ago

not an interesting feature to me and no time to work on it these days. I'll keep it open in case anyone is interested in filing an MR.

Havunen commented 12 months ago

I opened PR to fix this

lppedd commented 12 months ago

Thanks @Havunen!