mnater / Hyphenopoly

Hyphenation for node and Polyfill for client-side hyphenation.
http://mnater.github.io/Hyphenopoly/
MIT License
696 stars 44 forks source link

fix: issue #205 #206

Closed mnater closed 1 year ago

mnater commented 1 year ago

Problem: Only first childNode gets unhyphenated

Solution: call replace() on innerHTML. This should be save in this context.

Notes: Alternatively loop over childNodes

Fixes #205, [ci skip]