mnater / Hyphenopoly

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

fix: issue #205 #206

Closed mnater closed 11 months 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]