I am trying to link to a specific paragraph in a website that has added a “uri” attribute to each of their paragraphs. ie.:
<p uri="/level1/leve2/pagename.p5">
Any way to do that?
(To clarify, this is not a site that I have any control over or can change beyond suggesting that they change, just wondering if there is a way to link to the way they currently do it.)
No. It is a non-standard attribute, browsers do nothing with it.
If you want to link to an element, then you should give it an
idand specify:You could, in theory, add some JavaScript to the page that would search through all the elements in the page for ones with a
uriattribute and convert them toidattributes, but having a real HTML document in the first place would be better.If you have no control over the page then, short of writing a browser plugin and making everyone use it, you cannot achieve this.