Skip to content
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

Added img basename explainer #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vmpstr
Copy link
Owner

@vmpstr vmpstr commented Sep 15, 2021

No description provided.


Note that since the extension of the filename can be determined automatically
by the User Agent, we feel that the choice should not be in the developer's
options to avoid security problems (e.g. developer picking `.exe` as an

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As well as the security issue, the image may be one of multiple formats depending on client side configuration (<picture>) or content negotiation on the server.


## Summary

The IMG `basename` attribute is an attribute specified on the IMG element. It

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any thoughts about making this work on <canvas>, <video> and <audio> too?

Copy link

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of notes, but LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants