W3C home > Mailing lists > Public > public-html@w3.org > January 2010

Re: <iframe doc="">

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 17 Jan 2010 13:25:11 +0100
Message-ID: <4B5301A7.2060007@lachy.id.au>
To: Philip Taylor <pjt47@cam.ac.uk>
Cc: Ian Hickson <ian@hixie.ch>, public-html@w3.org
Philip Taylor wrote:
> Lachlan Hunt wrote:
>> Ian Hickson wrote:
>>> Markup in attributes has it's disadvantages, but it's not necessarily a
>>> problem.
>>
>> One big disadvantage with putting markup in attributes, especially for
>> the doc proposal, is that ampersands will often have to be double
>> escaped as &amp;amp;, due to the content of doc effectively being
>> parsed twice - once as the content of the attribute, and then again to
>> parse the string as a document.
>
> Why "especially for the doc proposal"? The ampersand problem seems the
> same for any markup-in-attribute proposal, and doc has far fewer
> escaping problems than the data: alternative.

I wasn't trying to advocate data URIs as a more reasonable alternative. 
  I'm well aware that it has its own complexities and problems that make 
it inadequate for the use cases.  I was just pointing out a particularly 
unintuitive consequence of this proposal.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Sunday, 17 January 2010 12:25:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:12 UTC