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

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.

2 participants