W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] The src-N proposal

From: matmarquis.com <mat@matmarquis.com>
Date: Mon, 18 Nov 2013 11:36:24 -0500
Message-Id: <60206FC1-E579-4E83-B18B-261A4BEFF499@matmarquis.com>
To: Jirka Kosek <jirka@kosek.cz>
Cc: whatwg@lists.whatwg.org, Marcos Caceres <w3c@marcosc.com>

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:14 UTC