-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document Subtitle #138
Comments
Hi @diekus! 👋 Thanks for reaching out. In the context of an installed web application, I'm a little bit confused as to why the user agent wouldn't just combine the manifest's Or, differently, what happens to the document title when the subtitle is present? Sorry if I missed that in the explainer. Would be great to work through some cases so I can get a better understanding of what's being proposed. I'm also interested in the relationship to "application-name", as was raised in the Mozilla repo. |
OMG @marcoscaceres it's really you! 👋🏽 The way that installed web apps are composing their title bar is exactly how you're describing. They take the app's name (manifest file here does the trick) and then they add the content of the
While very diverse and very random this use of title generally works(?) when displaying this in a browser's tab. With more web apps tapping into editing files, we need a better way that developers can provide this additional information without discarding the information in It also makes this contextual information more accessible, and easier to update but the UA, instead of relying on hacks that identify the state a web app is at by using JS to run a match on a media query to update the |
Friendly ping! @marcoscaceres |
Hey @diekus! sorry for the delay. I'm still a bit worried that this not really solving the core problem, in that it just moves the problem from one place to another (or, at least, For example, an application could use:
And a "subtitle" could be used for a general browser tab too. There is nothing specific about it related to apps, which seems to be closer to the problem you are trying to solve for. If this is specific for "applications", I wonder if something more specific might be needed (e.g., Also, this doesn't really meet the criteria of metadata (as per Also, the API for manipulating meta tags seems not great, specially for something that might need to be updated dynamically. Like, what happens when you have multiple?
Which then ends up in an awkward So, I'm wondering if one might need something better (i.e., maybe an entirely new HTML tag)? |
A new element in |
Good point, @zcorpan. At the same time, if the is important, the parser could be extended and a polyfills could help with the transition. |
Anyway, let's try to avoid designing a solution here. I'm just wanted to point out some concerns (see labels) I have with the current proposal and that it might not be optimal for solving the use cases. @diekus, it might be good to get the proposal in front of the i18n folks over at the W3C to see if they have some suggestions about how the i18n concerns could be addressed. You can email them a link to the proposal at [email protected] and please CC me! 🙏 In the meantime, I'll ping other folks in the WebKit community working in this area to get their opinion of the overall use case that this is trying to solve. |
name
value of subtitle
(Document Subtitle)
@diekus. we discussed internally a bit and I think we are going to take a "neutral" position here, but we have some concerns. We understand that Edge has made a decision to display "name - (sub)title" information of an installed web application in the title bar of an app. However, this is not yet a standard practice and might not fit the conventions of every operating system / user agent (i.e., this is currently a bit of an Edge-specific concern). We also think it might be premature to claim\standardize const subtitle = document.querySelector("meta[name='subtitle']");
if (condition) subtitle?.content = "whatever"; Also, wonder if you might consider a less generalized name (e.g., "application-title" or something, given the primary use case for this text - and also as "application-name" already exists)… as we are still somewhat unconvinced about this being generalized enough to claim document "subtitle" status for documents in general. Unless anyone from the WebKit community objects or has has further comments, I'd like to mark this an "neutral" in week or so. |
@hober makes a great point. There is already extensive usage of @diekus, wdyt? Did you explore that route instead? I seems like |
Ok, so our revised position is that we "oppose" this proposal because we are concerned about duplication with @diekus, would be great for us to do some further investigation on the suitability of |
Thank you @marcoscaceres and @hober. I will take a look at these metadata vocabularies. I am not familiar with them, but they might provide the bucket of information I am seeking for storing this piece of data in an accessible manner. I will assess them and looking forward to following up on this @marcoscaceres . |
Hola @marcoscaceres. There have been changes to the feature, I'd like to ask for a revision of the new solution with this updated explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DocumentSubtitle/explainer.md |
Added to my todo to review again... |
Spoke to @diekus, and he informed me that the proposal has dropped the API (it just uses the meta tag for everything, dynamically) - however, the API is in the Explainer, so, @diekus, it would be great to see it removed. As such, I removed the label "concern: API design". The duplication concern remains with Having revised the proposal, and again given that not all user agents would make use of this, I think WebKit should consider reverting our position to "neutral". @diekus, I'd encourage you to take the proposal directly to HTML. It should receive wider feedback, particularly around the naming (which, as the explainer points out, might still need to change). As I can't recall (or can now see) integration issues, I'm removing that. @diekus showed me it working on an installed web app on Windows and it integrates fine. |
Tl;dr: given the above, I'd like to move to setting this to "neutral" in a week or so once the explainer is updated, and we see this moved more formally into HTML where it can get more eyes on it. |
@marcoscaceres the explainer has been updated, references to the JS API have been removed and an explanation of why meta-data vocabularies are not really suited to represent this particular case. |
Request for position on an emerging web specification
Information about the specification
Design reviews and vendor positions
name
s for a meta tag w3ctag/design-reviews#819Bugs tracking this feature
Anything else we need to know
We want to enable a way with which web apps (installed or not) can save contextual information about the document/file that is being edited or used at the moment. Titles have become convoluted and are not the best resources to find this information for screen readers, and updating them when a web app is installed or being used from the home screen requires JavaScript and matching to a media query.
This does not involve the creation of a new HTML tag, it will be a standard name value for a meta tag. The HTML standard recommends that if there is processing by the UA (this might happen if this information were to be applied to the title bar of an installed web app or shown in the text in the tab of a browser) it should be then added as a standard value.
The text was updated successfully, but these errors were encountered: