Comments (3)
Having thought about it more, I take back type
as a suggestion. In addition to what you said, type
would only work if 'new tab group' remains the only such capability since it doesn't allow multiple types. If we ever wanted to say "allow this link to open new tab groups AND allow it to perform-some-new-action" we wouldn't be able to express that.
A new token for the rel
attribute could work? I'm not sure rel
is right for this since it's not really a relationship between the link and the current document but it feels somewhat similar to values like noreferrer
or noopener
in that it changes the processing model of invoking the link.
Another option is to add a boolean attribute: <a collection href=...>
+@vmpstr for thoughts as well.
Another thing to keep in mind is we'll likely also need this on window.open
.
from page-collection.
I'm trying to reuse as much as possible that already exists, this was meant to be analogous in terms of giving the link permission to perform some action "open multiple windows", but yeah, the tokens wouldn't be the same so point taken.
Taking another look at this...I see we can specify the content type for an anchor using the type
attribute. We could restrict automatically opening multiple windows unless the link hints its type as text/uri-list
(or whatever we decide on for the content type). Would that work?
from page-collection.
Wow, fascinating, I'd totally forgotten <a type="">
existed! Yeah, maybe it would work? Although changing something from a no-op "comment" to impacting the processing model is a bit unusual, so I think it would be worth some wider discussion.
In general, I think it's OK to invent new things for new features, instead of trying to find clever ways of reusing or repurposing existing things.
from page-collection.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from page-collection.