funkia / turbine

Purely functional frontend framework for building web applications
MIT License
685 stars 27 forks source link

Add unknown properties as attribute #72

Closed Jomik closed 6 years ago

Jomik commented 6 years ago

We need to set attributes from props.attrs & attributes in props before we set behaviors. Simple way of doing it is looping over the keys in props, check against a list of known keywords, then reuse previous code.

codecov[bot] commented 6 years ago

Codecov Report

Merging #72 into master will increase coverage by 0.06%. The diff coverage is 100%.

Impacted Files Coverage Δ
src/dom-builder.ts 100% <100%> (ø) :arrow_up: