mobifyjs icon indicating copy to clipboard operation
mobifyjs copied to clipboard

Use of a real picture element can create compatibility issues

Open yoavweiss opened this issue 12 years ago • 3 comments

Since the picture proposal is still a draft, and future changes to it are highly probable, adding it to the markup can actually be harmful to the standardization process and can create future compatibility issues.

A different pattern (such as picturefill’s use of spans with a “data-picture” attribute) is highly preferred, since it enables Web developers to experiment with a picture-like syntax, without the possible compatibility issues.

Would it be possible to avoid the use of picture and switch to a similar pattern instead?

yoavweiss avatar Oct 24 '13 21:10 yoavweiss

Yep this is definitely a valid issue. Will address it ASAP!

jansepar avatar Oct 29 '13 06:10 jansepar

Hi @yoavweiss, I've issues a pull request for this, would love if you want to take a quick peek to see if I've done it as you were hoping. I've actually made it so that <picture> still works for backwards compatibility, but I've changed all example code and examples on the website to use <span data-picture>. Let me know if this change is to your liking!

jansepar avatar Dec 02 '13 05:12 jansepar

Hi @jansepar ! As long as the use of explicit is discouraged, I'm cool with this change. (backward compat is not a problem, as long as new sites don't use the explicit ).

Thanks! :)

yoavweiss avatar Dec 06 '13 17:12 yoavweiss