<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10788</bug_id>
          
          <creation_ts>2010-09-28 06:53:10 +0000</creation_ts>
          <short_desc>@srcdoc in polyglot documents</short_desc>
          <delta_ts>2011-08-04 05:07:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Leif Halvard Silli">xn--mlform-iua</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39671</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-09-28 06:53:10 +0000</bug_when>
    <thetext>Depending on outcome of   Issue-100 and Issue-103, describe how to write make @srcdoc XML-compatible.

Also see: http://www.w3.org/2002/09/wbs/40318/issue-103-objection-poll/results</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41843</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-10-29 19:51:21 +0000</bug_when>
    <thetext>Hi Leif. 

Sine these issues are now decided, can you be clear about what you are looking for? What do you want to see added? Is it just something about the way the attributes value is encoded, or is it making the document thats inside the sourcedoc an xml-compatible document?

I&apos;d appreciate it if you could propose text for any change required.

Thanks,

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42703</commentid>
    <comment_count>2</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-11-22 18:49:46 +0000</bug_when>
    <thetext>The two issues mentioned in the original bug have been resolved. As such, I am resolving this bug as &quot;needs info.&quot; Please indicate whether any action should be taken based on the decisions. If no action needs to be taken, the bug can remain resolved.

Thanks,

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44544</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-01-21 06:15:20 +0000</bug_when>
    <thetext>HTML5 now says:

http://dev.w3.org/html5/spec/the-iframe-element.html#process-the-iframe-attributes

]] Due to restrictions of the XML syntax, in XML the U+003C LESS-THAN SIGN character (&lt;) needs to be escaped as well. In order to prevent attribute-value normalization, some of XML&apos;s whitespace characters  specifically U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF), and U+000D CARRIAGE RETURN (CR)  also need to be escaped. [XML] [[

Btw, this bug also directly relates to  bug 9965. As such the issue could be seen as being covered by bug 9965.

However, if you don&apos;t objecet, then I would suggest adding a note specifically about @srcdoc, as it is a very new, anti-pattern-ish attribute. 

May be you could solve this issue as part of solving bug 9965.  That is, I think you could specifically mention @srcdoc under secftion 7:
http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html#attributes 
E.g. add, there, that escaping of tabs, line-feed and carriage-return is a particulary relevant with regard to @srcdoc.

Either that or make separate in another place in the document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45424</commentid>
    <comment_count>4</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-02-12 00:39:31 +0000</bug_when>
    <thetext>I added the following example in section 7:

Example
&lt;iframe srcdoc=&quot;&lt;p&gt;Hello &amp;#x0A; &amp;#x09; world!&lt;/p&gt;&quot; src=&quot;demo_iframe_srcdoc.htm&quot;&gt;&lt;/iframe&gt;

I believe that this fulfills the requirements of this bug and so I have resolved it.

Thanks for your help,

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45453</commentid>
    <comment_count>5</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-02-13 19:32:20 +0000</bug_when>
    <thetext>(In reply to comment #4)

&gt; Example
&gt; &lt;iframe srcdoc=&quot;&lt;p&gt;Hello &amp;#x0A; &amp;#x09; world!&lt;/p&gt;&quot;
&gt; src=&quot;demo_iframe_srcdoc.htm&quot;&gt;&lt;/iframe&gt;

Very good. I am satisfied. But you have forgotten to escape all the necessary characters: the  &apos;&lt;&apos; (Less than) sign occurs twice inside that @srcdoc attribute. And &quot;&lt;&quot; must be escaped in XML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46232</commentid>
    <comment_count>6</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-03-03 22:31:31 +0000</bug_when>
    <thetext>Changed the example to the following:

Example&lt;iframe srcdoc=&quot;&amp;lt;p&amp;gt;Hello &amp;#x0A; &amp;#x09; world!&amp;lt;/p&amp;gt;&quot; src=&quot;demo_iframe_srcdoc.htm&quot;&amp;gt;&lt;/iframe&gt;

Thanks!

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46240</commentid>
    <comment_count>7</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-03-03 23:30:41 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Changed the example to the following:
&gt; 
&gt; Example&lt;iframe srcdoc=&quot;&amp;lt;p&amp;gt;Hello &amp;#x0A; &amp;#x09; world!&amp;lt;/p&amp;gt;&quot;
&gt; src=&quot;demo_iframe_srcdoc.htm&quot;&amp;gt;&lt;/iframe&gt;

Dear Eliot ... The point is to show what _needs_ to be escaped, and to leave everythingelse un-escaped, right? 

And - in fact - the &quot;&gt;&quot; does _not_ need to be escaped.  (And this is the reason why I did _not_ ask you to escape the &quot;&gt;&quot;  - I only asked you to escape the &quot;&lt;&quot;. I only asked you to escape the &quot;&lt;&quot;.

So please revert the &amp;gt; to &gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46285</commentid>
    <comment_count>8</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-03-04 01:51:29 +0000</bug_when>
    <thetext>Hi Leif.

Reverted:

]]
Example
&lt;iframe srcdoc=&quot;&amp;lt;p&gt;Hello &amp;#x0A; &amp;#x09; world!&amp;lt;/p&gt;&quot; src=&quot;demo_iframe_srcdoc.htm&quot;&gt;&lt;/iframe&gt;
[[

Thanks for keeping me honest!

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53136</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:00 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53183</commentid>
    <comment_count>10</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:24 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>