|
15 | 15 |
|
16 | 16 | class Link implements EvolvableLinkInterface
|
17 | 17 | {
|
18 |
| - // Relations defined in https://www.w3.org/TR/html5/links.html#links and applicable on link elements |
| 18 | + // @see https://www.iana.org/assignments/link-relations/link-relations.xhtml |
| 19 | + public const REL_ABOUT = 'about'; |
| 20 | + public const REL_ACL = 'acl'; |
19 | 21 | public const REL_ALTERNATE = 'alternate';
|
| 22 | + public const REL_AMPHTML = 'amphtml'; |
| 23 | + public const REL_APPENDIX = 'appendix'; |
| 24 | + public const REL_APPLE_TOUCH_ICON = 'apple-touch-icon'; |
| 25 | + public const REL_APPLE_TOUCH_STARTUP_IMAGE = 'apple-touch-startup-image'; |
| 26 | + public const REL_ARCHIVES = 'archives'; |
20 | 27 | public const REL_AUTHOR = 'author';
|
| 28 | + public const REL_BLOCKED_BY = 'blocked-by'; |
| 29 | + public const REL_BOOKMARK = 'bookmark'; |
| 30 | + public const REL_CANONICAL = 'canonical'; |
| 31 | + public const REL_CHAPTER = 'chapter'; |
| 32 | + public const REL_CITE_AS = 'cite-as'; |
| 33 | + public const REL_COLLECTION = 'collection'; |
| 34 | + public const REL_CONTENTS = 'contents'; |
| 35 | + public const REL_CONVERTEDFROM = 'convertedfrom'; |
| 36 | + public const REL_COPYRIGHT = 'copyright'; |
| 37 | + public const REL_CREATE_FORM = 'create-form'; |
| 38 | + public const REL_CURRENT = 'current'; |
| 39 | + public const REL_DESCRIBEDBY = 'describedby'; |
| 40 | + public const REL_DESCRIBES = 'describes'; |
| 41 | + public const REL_DISCLOSURE = 'disclosure'; |
| 42 | + public const REL_DNS_PREFETCH = 'dns-prefetch'; |
| 43 | + public const REL_DUPLICATE = 'duplicate'; |
| 44 | + public const REL_EDIT = 'edit'; |
| 45 | + public const REL_EDIT_FORM = 'edit-form'; |
| 46 | + public const REL_EDIT_MEDIA = 'edit-media'; |
| 47 | + public const REL_ENCLOSURE = 'enclosure'; |
| 48 | + public const REL_EXTERNAL = 'external'; |
| 49 | + public const REL_FIRST = 'first'; |
| 50 | + public const REL_GLOSSARY = 'glossary'; |
21 | 51 | public const REL_HELP = 'help';
|
| 52 | + public const REL_HOSTS = 'hosts'; |
| 53 | + public const REL_HUB = 'hub'; |
22 | 54 | public const REL_ICON = 'icon';
|
| 55 | + public const REL_INDEX = 'index'; |
| 56 | + public const REL_INTERVALAFTER = 'intervalafter'; |
| 57 | + public const REL_INTERVALBEFORE = 'intervalbefore'; |
| 58 | + public const REL_INTERVALCONTAINS = 'intervalcontains'; |
| 59 | + public const REL_INTERVALDISJOINT = 'intervaldisjoint'; |
| 60 | + public const REL_INTERVALDURING = 'intervalduring'; |
| 61 | + public const REL_INTERVALEQUALS = 'intervalequals'; |
| 62 | + public const REL_INTERVALFINISHEDBY = 'intervalfinishedby'; |
| 63 | + public const REL_INTERVALFINISHES = 'intervalfinishes'; |
| 64 | + public const REL_INTERVALIN = 'intervalin'; |
| 65 | + public const REL_INTERVALMEETS = 'intervalmeets'; |
| 66 | + public const REL_INTERVALMETBY = 'intervalmetby'; |
| 67 | + public const REL_INTERVALOVERLAPPEDBY = 'intervaloverlappedby'; |
| 68 | + public const REL_INTERVALOVERLAPS = 'intervaloverlaps'; |
| 69 | + public const REL_INTERVALSTARTEDBY = 'intervalstartedby'; |
| 70 | + public const REL_INTERVALSTARTS = 'intervalstarts'; |
| 71 | + public const REL_ITEM = 'item'; |
| 72 | + public const REL_LAST = 'last'; |
| 73 | + public const REL_LATEST_VERSION = 'latest-version'; |
23 | 74 | public const REL_LICENSE = 'license';
|
24 |
| - public const REL_SEARCH = 'search'; |
25 |
| - public const REL_STYLESHEET = 'stylesheet'; |
| 75 | + public const REL_LINKSET = 'linkset'; |
| 76 | + public const REL_LRDD = 'lrdd'; |
| 77 | + public const REL_MANIFEST = 'manifest'; |
| 78 | + public const REL_MASK_ICON = 'mask-icon'; |
| 79 | + public const REL_MEDIA_FEED = 'media-feed'; |
| 80 | + public const REL_MEMENTO = 'memento'; |
| 81 | + public const REL_MICROPUB = 'micropub'; |
| 82 | + public const REL_MODULEPRELOAD = 'modulepreload'; |
| 83 | + public const REL_MONITOR = 'monitor'; |
| 84 | + public const REL_MONITOR_GROUP = 'monitor-group'; |
26 | 85 | public const REL_NEXT = 'next';
|
27 |
| - public const REL_PREV = 'prev'; |
28 |
| - |
29 |
| - // Relation defined in https://www.w3.org/TR/preload/ |
30 |
| - public const REL_PRELOAD = 'preload'; |
31 |
| - |
32 |
| - // Relations defined in https://www.w3.org/TR/resource-hints/ |
33 |
| - public const REL_DNS_PREFETCH = 'dns-prefetch'; |
| 86 | + public const REL_NEXT_ARCHIVE = 'next-archive'; |
| 87 | + public const REL_NOFOLLOW = 'nofollow'; |
| 88 | + public const REL_NOOPENER = 'noopener'; |
| 89 | + public const REL_NOREFERRER = 'noreferrer'; |
| 90 | + public const REL_OPENER = 'opener'; |
| 91 | + public const REL_OPENID_2_LOCAL_ID = 'openid2.local_id'; |
| 92 | + public const REL_OPENID_2_PROVIDER = 'openid2.provider'; |
| 93 | + public const REL_ORIGINAL = 'original'; |
| 94 | + public const REL_P_3_PV_1 = 'p3pv1'; |
| 95 | + public const REL_PAYMENT = 'payment'; |
| 96 | + public const REL_PINGBACK = 'pingback'; |
34 | 97 | public const REL_PRECONNECT = 'preconnect';
|
| 98 | + public const REL_PREDECESSOR_VERSION = 'predecessor-version'; |
35 | 99 | public const REL_PREFETCH = 'prefetch';
|
| 100 | + public const REL_PRELOAD = 'preload'; |
36 | 101 | public const REL_PRERENDER = 'prerender';
|
| 102 | + public const REL_PREV = 'prev'; |
| 103 | + public const REL_PREVIEW = 'preview'; |
| 104 | + public const REL_PREVIOUS = 'previous'; |
| 105 | + public const REL_PREV_ARCHIVE = 'prev-archive'; |
| 106 | + public const REL_PRIVACY_POLICY = 'privacy-policy'; |
| 107 | + public const REL_PROFILE = 'profile'; |
| 108 | + public const REL_PUBLICATION = 'publication'; |
| 109 | + public const REL_RELATED = 'related'; |
| 110 | + public const REL_RESTCONF = 'restconf'; |
| 111 | + public const REL_REPLIES = 'replies'; |
| 112 | + public const REL_RULEINPUT = 'ruleinput'; |
| 113 | + public const REL_SEARCH = 'search'; |
| 114 | + public const REL_SECTION = 'section'; |
| 115 | + public const REL_SELF = 'self'; |
| 116 | + public const REL_SERVICE = 'service'; |
| 117 | + public const REL_SERVICE_DESC = 'service-desc'; |
| 118 | + public const REL_SERVICE_DOC = 'service-doc'; |
| 119 | + public const REL_SERVICE_META = 'service-meta'; |
| 120 | + public const REL_SIPTRUNKINGCAPABILITY= 'siptrunkingcapability'; |
| 121 | + public const REL_SPONSORED = 'sponsored'; |
| 122 | + public const REL_START = 'start'; |
| 123 | + public const REL_STATUS = 'status'; |
| 124 | + public const REL_STYLESHEET = 'stylesheet'; |
| 125 | + public const REL_SUBSECTION = 'subsection'; |
| 126 | + public const REL_SUCCESSOR_VERSION = 'successor-version'; |
| 127 | + public const REL_SUNSET = 'sunset'; |
| 128 | + public const REL_TAG = 'tag'; |
| 129 | + public const REL_TERMS_OF_SERVICE = 'terms-of-service'; |
| 130 | + public const REL_TIMEGATE = 'timegate'; |
| 131 | + public const REL_TIMEMAP = 'timemap'; |
| 132 | + public const REL_TYPE = 'type'; |
| 133 | + public const REL_UGC = 'ugc'; |
| 134 | + public const REL_UP = 'up'; |
| 135 | + public const REL_VERSION_HISTORY = 'version-history'; |
| 136 | + public const REL_VIA = 'via'; |
| 137 | + public const REL_WEBMENTION = 'webmention'; |
| 138 | + public const REL_WORKING_COPY = 'working-copy'; |
| 139 | + public const REL_WORKING_COPY_OF = 'working-copy-of'; |
37 | 140 |
|
38 | 141 | // Extra relations
|
39 | 142 | public const REL_MERCURE = 'mercure';
|
|
0 commit comments