8000 Support the <wbr> element by twm · Pull Request #7 · twm/html5iter · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Support the <wbr> element #7

Merged
merged 4 commits into from
Jul 3, 2020
Merged

Support the <wbr> element #7

merged 4 commits into from
Jul 3, 2020

Conversation

twm
Copy link
Owner
@twm twm commented Jul 3, 2020

<wbr> is an empty element which indicates a line break opportunity. The effect is similar to inserting a zero-width space, but superior because <wbr> does not affect the text of the selection (so when copied there aren't invisible characters in it).

<wbr> is safe when sanitizing HTML.

https://html.spec.whatwg.org/#the-wbr-element

Port of html5lib/html5lib-python#395

@twm twm merged commit cd16894 into trunk Jul 3, 2020
@twm twm deleted the wbr branch July 3, 2020 19:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0