4 ms·
rel="internal" raised my eyebrows. Yes, it makes sense. But the `rel` attribute is not to be used lightly and values are not to be invented on a whim, because
by alanh 14y ago
rel="internal"
raised my eyebrows. Yes, it makes sense. But the `rel` attribute is not to be used lightly and values are not to be invented on a whim, because eventually the value can be defined for all sites, not just yours.
Without thoroughly researching it, it looks like `rel=internal` is not standardized. That means you should not use it!
Instead, consider:
<a href="/page" data-push-state="push">Foo</a>
and
jQuery('a[data-push-state=push]')
The data-* attributes are explicitly defined as open for your own invention and use.
- bcherry 14y agoOr `jQuery("a[href^='/']")` and you don't need extra attributes at all.
- jcxplorer 14y agoAuthor here. You are absolutely right! I just updated the blog post and used bcherry's solution. `rel="internal"` is indeed not standardized.
- alanh 14y agoI love you for updating. It shows you take tech blogging as the serious responsibility it is! :)