Jump to content
  • 0

Проблема с rel


rango2014
 Share

Question

При валидации выскакивает такая ошибка

error.png Line 64, Column 75: Bad value images/thumbs/1.jpg for attribute rel on element a: Not an absolute IRI. The string images/thumbs/1.jpg is not a registered keyword or absolute URL.

…ss="selected"><a href="images/1.jpg" rel="images/thumbs/1.jpg">Image 1</a></li>

Syntax of link type valid for <a> and <area>: A whitespace-separated list of link types listed as allowed on <a> and <area> in the HTML specification or listed as an allowed on <a> and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself. Syntax of absolute IRI: An absolute URL. For example: http://example.org/hello, but not /hello. Spaces should be escaped as %20.

rel используется в дальнейшем в javascript, в слайдере. Как исправить? rel ссылается на мини картинку используемую в слайдере.

Заранее спасибо.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

не считаю это проблемой. если все работает - славно.

зачастую валидация на 100% ни что иное как "понты". не заморачивайтесь.

но если волнует проблема - попробуйте попросту брать ссылку не с rel, а скажем вкладывать внутрь тег <a> с display: none имеющий href на необходимый файл. думаю это не проблема

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy