Title: rel=&#8221;https://api.w.org/&#8221; &#8211; Invalid sintax
Last modified: August 6, 2021

---

# rel=”https://api.w.org/” – Invalid sintax

 *  [rafanas](https://wordpress.org/support/users/rafanas/)
 * (@rafanas)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/relhttps-api-w-org-invalid-sintax/)
 * Hello there,
 * I am trying to make my theme output valid with xhtml5, but the function rest_output_link_wp_head()
   generates invalid head tag including an URL as a rel value. <link rel=”[https://api.w.org/&#8221](https://api.w.org/&#8221);
   href=”%s” />
 * I can remove this with a function, but that would be plugin territory in case
   I want to upload my theme to wordpress.org.
 * Why is this necessary? Why is invalid? Is there a workaround? Can this change
   to be valid in the future?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/relhttps-api-w-org-invalid-sintax/#post-14739283)
 * The API link is to provide for proper REST API discovery. It’s valid for HTML5.
   XHTML5 is an evolving standard. Apparently the URL is not a registered keyword
   for `rel` attributes like “alternate” would be. Changing or removing the link
   would prevent formal discovery of the API route. I’m not sure how many apps go
   through formal discovery. Many simply try to access directly and it either works
   or it doesn’t. Still discovery is the “proper” way to utilize the API. It’s unclear
   what a compliant discovery solution would be if `rel` attributes must be limited
   to registered keywords. Whatever it might be would likely break existing apps
   that utilize the proper discovery process..

Viewing 1 replies (of 1 total)

The topic ‘rel=”https://api.w.org/” – Invalid sintax’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [semantic](https://wordpress.org/support/topic-tag/semantic/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/relhttps-api-w-org-invalid-sintax/#post-14739283)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
