Replies: 4 comments 8 replies
-
I don't know of any precedents for URL templates in markup, but that doesn't mean there aren't any. If I'm reading the spec right, this use is for loading tile images into a map. That puts it in the "causes the resource at the given URL to be loaded" category from https://www.w3.org/TR/design-principles/#naming-of-url-attributes, meaning it should be |
Beta Was this translation helpful? Give feedback.
-
Somewhat tangential to the naming discussion, but I wonder whether any discussion of URL template strings should point to |
Beta Was this translation helpful? Give feedback.
-
We (me, @lolaodelola, @ylafon, @matatk, @dandclark) talked about it in a TAG breakout today, and there was a sense that just adding We also generally agreed that we wouldn't be confident enough to make this a full principle with just this one use so far. It'll be good for MapML to keep talking to the community about how to name these, but there's a good chance that we'll learn something from MapML deployment that'll give the next instance a good reason to diverge somewhat. |
Beta Was this translation helpful? Give feedback.
-
It's worth noting that HTML has a (very old, not great) precedent for this with Hopefully nobody else does this! But if any guidelines get written up here, it's probably worth pointing out as a precedent. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Per https://www.w3.org/TR/design-principles/#naming-of-url-attributes , attributes for URLs should be called
href
orsrc
unless there is good reason.MapML uses
tref
for URL templates like : https://maps4html.org/MapML-Specification/spec/#the-link-element-0Example:
Should they be using
href
instead? Is there any guidance or precedent for attributes containing URL templates?Beta Was this translation helpful? Give feedback.
All reactions