-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Remove the deprecated name attribute on HTML anchor elements #1870
Conversation
Fixes: matrix-org#1790 Signed-off-by: Johannes Marbach <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if deprecation is the correct classification for this since we're removing it without deprecating it. However, none of the other categories from https://github.com/matrix-org/matrix-spec/blob/main/CONTRIBUTING.rst#adding-to-the-changelog seemed fitting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a "Removed" section, which isn't listed in the CONTRIBUTING.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. I have opened #1907 to add it to the contribution guide.
Thanks also for adding the MSC to the changelog. I had totally forgotten about that. 🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name
attribute is imported from Vector, which is before even my time with Matrix. I'm not sure why it was included, or what value it has being included.
From a spec process perspective, I think we'd need to see the WHATWG spec on this deprecation before we can meaningfully decide if it needs an MSC. I suspect this PR will probably need an MSC if the feature is being removed with no replacement. From MSC4077 (ref):
It is left to the discretion of the spec PR reviewer as to whether an MSC is required. In general, an MSC should be requested when the replacement HTML feature is not quite the same as the old feature. The reviewer may also decide whether to keep supporting the old, deprecated, feature for some time. For example, replacing
strike
withs
may mean that both tags are supported for 1-2 Matrix spec versions beforestrike
can be dropped.
Co-authored-by: Travis Ralston <[email protected]>
WHATWG tracks it as obsolete: https://html.spec.whatwg.org/multipage/obsolete.html#obsolete-but-conforming-features
|
I'm happy to propose the removal as an MSC first if that is required. I'm not sure what the name attribute could ever have been used for but if we're unsure, an MSC might help get further perspectives on that. |
Co-authored-by: Travis Ralston <[email protected]>
@turt2live would you like this to go through an MSC before continuing here? |
I think so, yes. We can try to fast track the decision making on it though to avoid process burden. |
Ok, no problem. I'll try to get a short proposal up. |
This is now blocked on matrix-org/matrix-spec-proposals#4159 |
Undrafting since the MSC has been merged. |
The
name
attribute has been allowed since the r0.4.0 and was introduced with https://github.com/matrix-org/matrix-spec-proposals/pull/1562/files#diff-f90b924249c2799cc2d7eb25cba5418fa8b0412dc3b8a3f176964dab7b2d789bR88.It has since been deprecated:
I think we should not allow clients to render HTML IDs from external content. So the only possible way forward appears to be removing the
name
attribute without a replacement.CC @turt2live in case you recall the use case that led to
name
being permitted.Fixes: #1790
Pull Request Checklist
Preview: https://pr1870--matrix-spec-previews.netlify.app