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

Use HTMLElement interface for picture #87

Closed
zcorpan opened this Issue Jan 7, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@zcorpan

zcorpan commented Jan 7, 2014

With the current design, the picture element is dumb and doesn't need a dedicated interface, as far as I can tell. It could be useful for feature-checking, but then it seems more reliable to check for srcset/sizes on source. So I suggest we drop HTMLPictureElement and let picture use HTMLElement instead.

@marcoscaceres

This comment has been minimized.

Member

marcoscaceres commented Jan 8, 2014

I'm 50/50 on this one... on the one hand, I see the value in simplifying the spec... on the other hand, I have a feeling we will end up enhancing this interface in the future so having HTMLPictureElement extending HTMLElement from the start might save us some pain later (and make this element easier to polyfill). IIUC, it's very cheap to have this interface declared on the element from the start (from an implementation perspective) even if it does nothing.

@zcorpan

This comment has been minimized.

zcorpan commented Jan 8, 2014

Hmm, I guess that's reasonable. OK with WONTFIX.

@yoavweiss

This comment has been minimized.

Member

yoavweiss commented Jan 8, 2014

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment