Page MenuHomePhabricator

HTML validation: Bad value edit for attribute rel on element link: Keyword edit is not registered.
Closed, ResolvedPublic

Description

This validation error shows for all pages with an edit link. As noted, the "edit" keyword is not registered with the W3C.

This can easily be fixed by adding the keyword:
http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions

This needs to be evaluated by a developed, and if it is determined that registration is the fix, then a developer should do this to ensure that the proper descriptions are added.

See also Bug 40384, which would have a similar fix.

HTML validation is important. When editors manually create HTML ids, such as
certain citation templates, we recommend they validate the page to ensure they
have no duplicates. They get bogged down in endemic validation errors.


Version: 1.20.x
Severity: normal

Details

Reference
bz40385

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:02 AM
bzimport set Reference to bz40385.
bzimport added a subscriber: Unknown Object (MLST).

Hmmm...

Looks like UniversalEditButton may or may not have actually adopted the
rel="edit" form -- http://universaleditbutton.org/Suggestions#Linking_Scheme
lists it and includes a mention of me adding it, but
http://universaleditbutton.org/Add_The_Link still lists the rel="alternate"
format.

This is the kind of thing that's really meant to be open-ended though, I'm a
bit baffled by the idea of rel values being registered. Is that new in
HTML5-land?

Gadget850:

This is the kind of thing that's really meant to be open-ended though, I'm a
bit baffled by the idea of rel values being registered. Is that new in
HTML5-land?

To resolve this, see http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions

The description must include:

  • "Effect on link"
  • "Effect on a and area"
  • a link to a spec that documents the keyword as an HTML rel keyword

One the keyword is registered, then the validator will pick it up and no longer generate this annoying error.

Krinkle claimed this task.
Krinkle subscribed.

The HTML spec by WHATWG points to microformats.org which recognises link[rel="edit"] as valid.