[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: element markup in attributes

  • From: cbullard@hiwaay.net
  • To: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: Wed, 17 Feb 2010 08:54:51 -0600

Re:  element markup in attributes
Initially, I'd say bad practice but then why are they doing that?

On the other hand, there is the precedent of adding javascript via  
that trick.  There is also the precedent of older SGML proto XML  
systems such as IADS that put subcontent in frames in the war of  
cardsharks and holy scrollers.

On the other other hand, seems I've been reading that HTML5 is cutting  
the cord back to SGML and XML anyway meaning they're free to make up  
any parsing and escaping rules they care to make.  It's a top to  
bottom gencode approach.  Happy to be corrected if those assumptions  
are wrong.

len


Quoting "Simon St.Laurent" <simonstl@simonstl.com>:

> I hesitate a bit in raising questions about HTML5 here, mostly  
> because of concerns that the violence of that conversation will  
> enter the discussion here.  Nonetheless, this list is the best place  
> I know of to discuss markup best practices, and seems like the right  
> place to ask the question.
>
> The iframe element has always been a tricky critter, but in HTML5  
> it's picked up a srcdoc attribute which "gives the content of the  
> page that the nested browsing context is to contain."  This allows  
> the construction of short documents in an iframe context without  
> requiring a separate HTTP request through the src attribute.
>
> Details can be found here:
>
> <http://dev.w3.org/html5/spec-author-view/the-iframe-element.html>
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html>
>
> So what does this look like? Here are three examples from those specs.
>
> -----------------------------------
> <iframe seamless sandbox="allow-same-origin" srcdoc="<p>did you get  
> a cover picture yet?"></iframe>
>
> <iframe seamless sandbox="allow-same-origin" srcdoc="<p>Yeah, you  
> can see it <a href=&quot;/gallery?mode=cover&amp;amp;page=1&quot;>in  
> my gallery</a>."></iframe>
>
> <iframe seamless sandbox="allow-same-origin" srcdoc="<p>hey that's  
> earl's table.
> <p>you should get earl&amp;amp;me on the next cover."></iframe>
> -----------------------------------
>
> What do folks think?  Is this reasonable, given the use case, or is  
> this pushing too hard on attributes and escaping?
>
> I wonder if just letting iframe have child content would make more  
> sense, but I suspect that raises more compatibility problems with  
> older browsers.
>
> Thanks,
> -- 
> Simon St.Laurent
> http://simonstl.com/
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.