WN

WN (https://www.wn.se/forum/index.php)
-   Klientsidans teknologier, design och grafik (https://www.wn.se/forum/forumdisplay.php?f=12)
-   -   Avstavning (https://www.wn.se/forum/showthread.php?t=5526)

Anders 2005-01-15 01:40

Provade använda ­ i ett längre ord för att undersöka stödet i webbläsarna - jag blev rätt besviken.
Citat:

Originally posted by http://www.w3.org/TR/html4/struct/text.html#h-9.3.3@Jan 15 2005, 01:35
In HTML, there are two types of hyphens: the plain hyphen and the soft hyphen. The plain hyphen should be interpreted by a user agent as just another character. The soft hyphen tells the user agent where a line break can occur.

Those browsers that interpret soft hyphens must observe the following semantics: If a line is broken at a soft hyphen, a hyphen character must be displayed at the end of the first line. If a line is not broken at a soft hyphen, the user agent must not display a hyphen character. For operations such as searching and sorting, the soft hyphen should always be ignored.

In HTML, the plain hyphen is represented by the "-" character (- or -). The soft hyphen is represented by the character entity reference ­ (­ or ­)

IE (XP SP2) klarade detta bra. FF ignorerade taggen och Konqueror skrev ut vanliga bindestreck men bröt aldrig ordet. Någon som använt detta eller får man vänta på stöd i klienterna?


Alla tider är GMT +2. Klockan är nu 06:53.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson