html5 - <link rel="shortcut icon"> validation error despite being valid -


the w3.org validator giving me error on following line:

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> 

this full error gives:

line 1, column 727: bad value shortcut icon attribute rel on element link: string shortcut not registered keyword. string shortcut not absolute url.

…f="/favicon.ico" type="image/x-icon" />

syntax of link type valid :

a whitespace-separated list of link types listed allowed on in html specification or listed allowed on on microformats wiki without duplicate keywords in list.

you can register link types on microformats wiki yourself.

syntax of absolute iri: absolute url.

for example: http://example.org/hello, not /hello. spaces should escaped %20.

what don't understand i'm following html5 spec says:

for historical reasons, icon keyword may preceded keyword "shortcut". if "shortcut" keyword present, must come before icon keyword , 2 keywords must separated single u+0020 space character.

i see suggesting %20 space, i've tried:

<link rel="shortcut%20icon" href="/favicon.ico" type="image/x-icon" /> 

but when use code, error same, except starts out:

error line 1, column 729: bad value shortcut%20icon attribute rel on element link: string shortcut%20icon not registered keyword. string shortcut%20icon not absolute url.

my name neil ormsby, , received message today steve faulkner.

it due bug in validator, has been fixed , pushed tomorrow.

steve faulkner

tpg distinguished accessibility engineer

-

co-editor html 5.1


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -