Re: [whatwg] The src-N proposal

On Nov 18, at 10:34 AM, Jirka Kosek wrote:

> On 18.11.2013 14:38, Marcos Caceres wrote:
> 
>> we really need to, srcset. The developer community already made
>> significant sacrifices in compromising on picture because of issues
>> that implementers raised about nested elements
> 
> Are those issues with nested elements described somewhere? I wasn't able
> to find anything and I would really like to know what the issue was.

Some of the objections involved the character count for the markup pattern (an issue frequently referenced in “authors won’t like this” terms, despite *highly* vocal community support for the pattern), and nebulous references to added implementor complexity when making use of the `source` selection algorithm. I recall that some of the more specific resistance was due to the complication involved in implementing and testing existing media elements, but I can’t claim to understand precisely what manner of browser-internal complications `source` elements brought to the table.

I believe Simon Pieters (zcorpan) had mentioned some of the details at one point—maybe he can clarify further, or direct us to previous post(s) on the subject?

> 
>> of constituencies. Let’s not further erode those principles for the
>> sake of markup aesthetics.
> 
> It's not just about aesthetics. From markup point of view src-n goes
> against common sense and principles. Existing APIs and languages for
> working with markup don't have easy way to access src-n attributes,
> especially if order based on "n" is significant. This is very different
> from nested elements where it's very easy to iterate over them.
> 
> Try to write JS+DOM, or XPath, or ... your preferred language here ...
> code for looping through src-n attributes in a right order. Compare it
> to the same code for subelements, which are ordered and have same name.
> 
> 						Jirka
> 
> -- 
> ------------------------------------------------------------------
>  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
> ------------------------------------------------------------------
>       Professional XML consulting and training services
>  DocBook customization, custom XSLT/XSL-FO document processing
> ------------------------------------------------------------------
> OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
> ------------------------------------------------------------------
>    Bringing you XML Prague conference    http://xmlprague.cz
> ------------------------------------------------------------------

Received on Monday, 18 November 2013 16:32:33 UTC