Re: issue with validator flagging something the w3 site uses as an example

"Michael[tm] Smith" <[email protected]> Wed, 22 Jul 2015 21:57:26 +0900
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
--2fEWJT3hVM9yyfvd
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Jacques,

Jacques Mattheij <[email protected]>, 2015-07-22 12:56 +0200:
> Archived-At: <http://www.w3.org/mid/[email protected]>
>=20
> Hello there,
>=20
> When I run http://jacquesmattheij.com/ through your verifier I get this
> error:
>=20
> *Error*: Bad value |navigation| for attribute |role| on element |ul| <htt=
p://www.w3.org/html/wg/drafts/html/master/single-page.html#the-ul-element>.

That error message is correct. The HTML element `ul` is not allowed to have
a role=3Dnavigation attribute.

The normative (authoritative) specification that defines which particular
role values are allowed on particular elements is the current HTML spec:

  https://www.w3.org/TR/html/dom.html#sec-implicit-aria-semantics

If you look at the row for the `ul` element in the table at the URL above,
you=E2=80=99ll see it says, =E2=80=9CIf specified, role must be one of the =
following:
directory, group, list, listbox, menu, menubar, radiogroup, tablist,
toolbar, tree or presentation.=E2=80=9D

> But when I check how that's supposed to be done on the w3 site
>=20
> http://www.w3.org/TR/2007/WD-xhtml-role-20071004/
>=20
> That is explicitly used as an example:
>=20
> <ul role=3D"navigation wai:sitemap">
>     <li href=3D"downloads">Downloads</li>
>     <li href=3D"docs">Documentation</li>
>     <li href=3D"news">News</li>
> </ul>
>=20
> It states that sample is only 'informative', but still if that's not good
> use then I would expect them to use another example. Please let me know
> which of the two (verifier or standards document) is in error.

The document at http://www.w3.org/TR/2007/WD-xhtml-role-20071004/ is not
normative/authoritative with regard to the rules for role values in HTML
documents, and it doesn=E2=80=99t claim to be that; in fact the latest vers=
ion of
that document, which is as https://www.w3.org/TR/xhtml-role/ indicates that
document is a Note, which means it has no normative/authoritative status
with regard to anything (instead it=E2=80=99s purely informative).

So while the fact that document has an invalid example is suboptimal, you
also need to understand that many older W3C documents may include invalid
examples; for example, the HTML4 spec has examples that aren=E2=80=99t valid
currently, according to the current rules in the HTML5 spec.

  =E2=80=94Mike

--=20
Michael[tm] Smith https://people.w3.org/mike

--2fEWJT3hVM9yyfvd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVr5M2AAoJEIfRdHe8OkuVjQkP/jhSsWUo7Llf8ln+DNENWV9q
bN5komfjE4Yck2HDDN/pKIrW6tvsbNcy8nfLXJb4C3L5DKB0c0MKmINRvdKSUkkF
QR3761WFWoH8RFEJuTj22Cxu9YkbHOI7aXIQLbkQJY0VAo+m4yuN1L/mWKioSGLM
5bbjoyO5DD4PYCXFpk0PM3eoy3Ut9QoBNvsUgjiEWkArJuan91+qbdN6jnBTblih
IRpW2DDLaINTanS+US3/sOCrLDYkAnMDRIIeozvF4+iT25jIUXv/cMvJU3Mknmnr
mldIr8pB1yJU/A+Vjn0Hp9sTkw8BOmxUUjVo8n+JhTnEyIrBFBdDJKpr8zL5m4bT
ycFIsJzle35RQT8JgHb45M5uRAw/lomhKniFXLX6/DHOBOAMidDgz5v4J4d9zGq2
OwJz4ukTR9FhxOZ7xgs/nuFiqzrnx32pK4HirH2EZqeCtS25KmQ5Zji/Xx5rvxSL
AhckTW3+6g3AmPk/f79AWRR54kMdy4TglA12i5TaKGyNE5D70caA7cZES3tz3V3V
9ptfjL9QPAITAsIOZ5oHuXEy8BYbzZOdGr3lr01bTZuIR33T6schEds6M7FYTJf1
JCHBupAOpXO0AwMrQzIB3unOQ6q3y8D8aPER3/IvLRwOKCLWLcTETqd9HhM8Pi0x
nIvpUURo+Y0W5ACrT3+3
=yI0X
-----END PGP SIGNATURE-----

--2fEWJT3hVM9yyfvd--