-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not hyphenate subtag with different lang in hyphenators (#111)
fix: don't hyphenate subtag with different lang Problem: language specific hyphenators try to hyphenate elements with a different language set. This can cause issues if the engine for that different language isn't ready, yet. Solution: Deprecate old use of hyphenators and emit warning when a stringHyphenator gets an HTMLElement to hyphenate, but still hyphenate the element (but not it's children). Implement two types of hyphenators: - language specific (hyphenate strings) - polyglot (hyphenate HTMLElements) Notes: With this, the PR can go in a minor release. Major release is to early. Remove this functionality in next major release. Makes createHyphenator private. Fixes #108, [skip travis-ci]
- Loading branch information
Showing
4 changed files
with
87 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters