<?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>16364</bug_id>
          
          <creation_ts>2012-03-14 10:20:48 +0000</creation_ts>
          <short_desc>Paragraph: Within &apos;The &quot;in body&quot; insertion mode&apos; the paragraph &apos;A start tag whose tag name is &quot;xmp&quot;&apos;.  This paragraph causes browser to always handle an xmp tag with a p tag as ending the p tag involved. In default xmp is a block element and this is no pr</short_desc>
          <delta_ts>2012-09-14 11:21:25 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>gbonnema</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</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>65509</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-03-14 10:20:48 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/spec/Overview.html
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Paragraph: Within &apos;The &quot;in body&quot; insertion mode&apos; the paragraph &apos;A start tag
whose tag name is &quot;xmp&quot;&apos;. 

This paragraph causes browser to always handle an xmp tag with a p tag as
ending the p tag involved. In default xmp is a block element and this is no
problem. But when using &apos;display: inline&apos; this specification will cause the
first xmp tag in the p tag area to end the paragraph it is in. Subsequent xmp
tags within this p area do not end any p tag. 

The question is whether this rule should take this into account so that xmp
defined as inline will show up proper inline. Example code where the problem
occurs:

&lt;p&gt; This short code &lt;xmp class=&quot;shortcode&quot;&gt;&lt;form&gt;&lt;/form&gt;&lt;/xmp&gt; will break up
the paragraph, but this code &lt;xmp class=&quot;shortcode&quot;&gt;&lt;form&gt;&lt;/form&gt;&lt;/xmp&gt; will
not  break up the paragraph, neither will the following code: &lt;xmp
class=&quot;shortcode&quot;&gt;&lt;p&gt;&lt;/p&gt;&lt;/xmp&gt;. Should the specification be adjusted?
&lt;/p&gt;

The question is whether this should be remedied in the specification.

Guus Bonnema, gbonnema@(*spam-prevention*)xs4all.nl.

Posted from: 2001:980:4536:1:92e6:baff:fe68:eb79
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65510</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-03-14 10:44:09 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: CSS should not affect HTML parsing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65512</commentid>
    <comment_count>2</comment_count>
    <who name="Guus">gbonnema</who>
    <bug_when>2012-03-14 11:52:22 +0000</bug_when>
    <thetext>Please reconsider. The problem occurs when defining the &lt;xmp&gt; tag as inline. This normally causes an element to be treated as equal to inline. 

Due to the specification paragraph at issue here, this is not the case when the &lt;xmp&gt; tag is subordinate to a &lt;p&gt; tag. Despite the inline specification, the &lt;xmp&gt; tag is specified to have an end tag (&lt;/p&gt;) inserted. Subsequent inline &lt;xmp&gt; tags are not affected, because the specification only indicates the end-tag insertion for &lt;p&gt; tags.

When the inline &lt;xmp&gt; tags are subordinate to another block element (like &lt;h1&gt; or &lt;h2&gt;) this is not the case and all inline &lt;xmp&gt; tags are treated like inline.

It is not CSS that causes the problem, but the specification paragraph at issue here, that specifically states to insert and ending paragraph tag. The result is that the inline &lt;xmp&gt; is not treated equal to other inline elements.

I quote the paragraph below.

&lt;quote&gt;
A start tag whose tag name is &quot;xmp&quot;                                                                                                                                                                             
          If the stack of open elements has a p element in button scope, then act as if an end tag with the tag name &quot;p&quot; had been seen.                                                                            
                                                                                                                                                                                                                   
          Reconstruct the active formatting elements, if any.                                                                                                                                                      
                                                                                                                                                                                                                   
          Set the frameset-ok flag to &quot;not ok&quot;.                                                                                                                                                                    
                                                                                                                                                                                                                   
          Follow the generic raw text element parsing algorithm.               
&lt;/quote&gt;

So you can see, that the specification causes the problem, not CSS.

I respectfully request you to reconsider.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66351</commentid>
    <comment_count>3</comment_count>
    <who name="Guus">gbonnema</who>
    <bug_when>2012-04-03 06:27:09 +0000</bug_when>
    <thetext>I reopened this issue a few weeks ago: what is the next step? Do I need to do anything more to get this rolling again?

Please let me know, Guus Bonnema.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66387</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-04-03 20:05:43 +0000</bug_when>
    <thetext>All you need is patience. Note that the editor fixes bugs in order of the time the last change to the bug was made, so &quot;bumping&quot; would be counterproductive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66404</commentid>
    <comment_count>5</comment_count>
    <who name="Guus">gbonnema</who>
    <bug_when>2012-04-04 05:58:04 +0000</bug_when>
    <thetext>Ok thanks. I will wait patiently and silently.
Hadn&apos;t heard of &quot;bumping&quot; in this context until now, will keep it in mind :).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70454</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:31:21 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17996 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72220</commentid>
    <comment_count>7</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-08-15 17:13:21 +0000</bug_when>
    <thetext>Filter on [Idon&apos;tcareaboutHTMLWGbugspam].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73894</commentid>
    <comment_count>8</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2012-09-14 11:21:25 +0000</bug_when>
    <thetext>Same decision as https://www.w3.org/Bugs/Public/show_bug.cgi?id=17996</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>