Re: What do we do with Wikipedia?

Wikipedia's use of srcset (as part of a prolyfill) is a problem.
The use of actual future attribute/element names is discouraged, since
their syntax may change.

It seems like the prolyfill in question is called jquery.hidpi [1]. I don't
know if it's used outside of WikiMedia.

We should definitely try to contact them and talk them out of using the
actual `srcset` attribute as long as it's not shipped anywhere.
Furthermore, the prolyfill is triggering double downloads, which isn't
ideal (but somewhat inherent to this kind of prolyfills on the `img`
element).

Yoav

[1]
http://code.ohloh.net/file?fid=ocwPgLrERs-EyVxnX3hDLts67Rc&cid=gvCXqzMs6wg&s=&browser=Default&fp=306442&mpundefined&projSelected=true#L0


On Mon, Oct 21, 2013 at 4:25 PM, Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>wrote:

> Three months ago, I was looking for some icons to use in our projects. I
> noticed that Wikipedia had already output <img srcset> and I tweeted
> "Just realized Wikipedia supports srcset="". Nice Job!".
>
> I just realized an hour ago that this feature is not even on in any of
> the shipped browser by default (it is under a runtime flag in Chrome),
> and I yelled "Fuck!".
>
> I am in the process of reading the srcN spec, and I noticed that folks
> seem to prefer it to srcset in general. What do we do?
>
>   1) Let it be (ie. do nothing, which means that it adds a lot more
>      validation errors if srcN obsoletes srcset[1], but I doubt many
>      care.).
>   2) Tell Wikipedia to stop.
>   3) Amend the srcN spec to include srcset as deprecated feature.
>
> Thoughts? Pushing a browser feature by contributing to MediaWiki seems
> like an odd idea IMHO.
>
> [1] https://bugzilla.wikimedia.org/show_bug.cgi?id=41346
>
>
> == See Also ==
>
> The changeset that enables srcset in MediaWiki
>
> https://gerrit.wikimedia.org/r/#/c/24115/
>
> High-density display issues (tracking) xhdpi hdpi Retina high-resolution
> HiDPI.
>
> https://bugzilla.wikimedia.org/show_bug.cgi?id=32101
>
>
> Cheers,
> Kenny
> --
> Web Specialist, Opera Sphinx Game Force, Oupeng Browser, Beijing
> Try Oupeng: http://www.oupeng.com/
>
>
>

Received on Monday, 21 October 2013 14:59:13 UTC