RFR: JDK-8266779: Use <wbr> instead of ZERO_WIDTH_SPACE [v3]

Jonathan Gibbons jjg at openjdk.java.net
Mon May 10 23:44:03 UTC 2021


On Mon, 10 May 2021 20:30:33 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

>> This replaces usages of the zero-width space character (ZWSP, entity `​`) with the HTML5 `<wbr>` element. `<wbr>` acts as a word break opportunity without adding characters to the text content like ZWSP does. It is supported in all modern browsers, the only browser I  know of which doesn't support is are old versions of Internet Explorer. 
>> 
>> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr
>> https://caniuse.com/wbr-element
>> 
>> I have tested the output (both layout and copy-paste behaviour) on Firefox, Safari, and Chrome on Mac OS X.
>
> Hannes Wallnöfer has updated the pull request incrementally with one additional commit since the last revision:
> 
>   JDK-8266779: Update comment and copyright years

Nice

-------------

PR: https://git.openjdk.java.net/jdk/pull/3946


More information about the javadoc-dev mailing list