XHTMLforum

XHTMLforum (http://xhtmlforum.de/index.php)
-   (X)HTML (http://xhtmlforum.de/forumdisplay.php?f=72)
-   -   XHTML 1.1 und <a name=""></a> (http://xhtmlforum.de/showthread.php?t=40045)

laborix 25.05.2006 18:32

XHTML 1.1 und <a name=""></a>
 
Hallo zusammen,

ich habe gerade mit Skip-Links (über die Navi oder zum Seitenanfang) experimentiert und habe diese in XHTML 1.0 strict mit dem Validator prüfen lassen. Super, ist valide und funktioniert.

Jetzt dachte ich mir, das auch mal mit XHTML 1.1 auzuprobieren. Also ein Sample-XHTML 1.1 Dokument gemacht und mit dem W3C-Validator prüfen lassen. Hier das Ergebnis:

Zitat:

Line 60 column 26: there is no attribute "name".



<a name="Inhalt"></a>Der Inhalt</p>

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
Hat von euch schon mal einer mit Skip-Links und XHTML 1.1 zu tun gehabt oder wisst ihr ein akzeptable Lösung?

Pablo 25.05.2006 18:36

Jap.
Einfach in irgendeinem Tag einen ID Wert setzen und dann zu diesem gewohnt springen.
Das braucht noch nicht mal ein a-Tag sein.

Gruß,
Pablo

laborix 25.05.2006 20:10

Zitat:

Zitat von Aarakast
Einfach in irgendeinem Tag einen ID Wert setzen und dann zu diesem gewohnt springen.
Das braucht noch nicht mal ein a-Tag sein.

Danke, hab's ausprobiert und funktioniert in Konqueror 3.5.1 und Opera 8.54. Ist auch noch valide. Klasse...

laborix 25.05.2006 22:27

Zitat:

Zitat von laborix
Zitat:

Zitat von Aarakast
Einfach in irgendeinem Tag einen ID Wert setzen und dann zu diesem gewohnt springen.
Das braucht noch nicht mal ein a-Tag sein.

Danke, hab's ausprobiert und funktioniert in Konqueror 3.5.1 und Opera 8.54. Ist auch noch valide. Klasse...

Zur Info: Habe es auch mit XHTML 1.0 strict und nur einem ID Wert getestet. Funktioniert mit Firefox, Konqueror und Opera ebenfalls. Danke nochmals für den Tip...


Alle Zeitangaben in WEZ +2. Es ist jetzt 22:50 Uhr.

Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

© Dirk H. 2003 - 2023