Commit f2289a8
committed
Improve parsing of link relationships
* Parse the rel attribute in accordance with the WHATWG spec:
https://infra.spec.whatwg.org/#split-on-ascii-whitespace
* Only list unique rel values in the rel-urls output, fixes #159:
microformats/microformats2-parsing#30
* Sort the unique rel values alphabetically:
microformats/microformats2-parsing#29
* Correctly merge attribute values into the resulting object.1 parent ebffee4 commit f2289a8
1 file changed
+24
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1254 | 1256 | | |
1255 | 1257 | | |
1256 | 1258 | | |
1257 | 1259 | | |
1258 | 1260 | | |
1259 | 1261 | | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | 1262 | | |
1264 | 1263 | | |
1265 | 1264 | | |
| |||
1299 | 1298 | | |
1300 | 1299 | | |
1301 | 1300 | | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
| 1301 | + | |
| 1302 | + | |
1307 | 1303 | | |
1308 | 1304 | | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1309 | 1322 | | |
1310 | 1323 | | |
1311 | 1324 | | |
| |||
1314 | 1327 | | |
1315 | 1328 | | |
1316 | 1329 | | |
1317 | | - | |
1318 | | - | |
| 1330 | + | |
| 1331 | + | |
1319 | 1332 | | |
1320 | 1333 | | |
1321 | 1334 | | |
| |||
0 commit comments