[wp-trac] [WordPress Trac] #37841: HTML 5 syntax error with rel='https://api.w.org/'

WordPress Trac noreply at wordpress.org
Tue Aug 30 13:57:50 UTC 2016


#37841: HTML 5 syntax error with rel='https://api.w.org/'
----------------------------+------------------------------
 Reporter:  zhanglide2018   |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  REST API        |     Version:  4.6
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by rmccue):

 * type:  defect (bug) => task (blessed)


Comment:

 I dug into this a bit; custom URI relations are not valid in the
 [https://html.spec.whatwg.org/multipage/semantics.html#other-link-types
 WHATWG HTML spec] per
 [https://www.w3.org/Bugs/Public/show_bug.cgi?id=13068 this issue], however
 they are valid in the [https://www.w3.org/TR/html5/links.html#linkTypes
 W3C HTML5 spec] per [https://www.w3.org/html/wg/tracker/issues/170 this
 issue] (basically same as the other one).

 Anyway, the text of the W3C spec says:

 > The remaining values must be accepted as valid if they are absolute URLs
 containing US-ASCII characters only and rejected otherwise.

 That's true for `https://api.w.org/`. I suspect the issue is that the
 validator is coded to follow the WHATWG spec, rather than the W3C spec.

 Anyway, tl;dr, we can add it to the [http://microformats.org/wiki
 /existing-rel-values#HTML5_link_type_extensions Microformats page], and
 then it's definitely valid in either spec.

 This is hence a task to add to that wiki page. :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37841#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list