<?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>28433</bug_id>
          
          <creation_ts>2015-04-08 07:52:56 +0000</creation_ts>
          <short_desc>Parser: a marker is not inserted when entering button</short_desc>
          <delta_ts>2016-04-12 14:29:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#concept-parser-marker</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>annevk</cc>
    
    <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119342</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-04-08 07:52:56 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/syntax.html
Multipage: https://html.spec.whatwg.org/multipage/#concept-parser-marker
Complete: https://html.spec.whatwg.org/#concept-parser-marker
Referrer: 

Comment:
A marker is not inserted when entering button
[[
The markers are inserted when entering applet elements, buttons, ...
]]

As far as I can tell the parser doesn&apos;t say &quot;insert a marker&quot; for &lt;button&gt;.

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.60 Safari/537.36 OPR/29.0.1795.30 (Edition beta)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119407</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-04-09 19:10:47 +0000</bug_when>
    <thetext>I&apos;ll check more carefully when I get to this bug, but off hand, do you think this should be fixed by adding a marker or by fixing the note? I&apos;m guessing the note...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119531</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2015-04-15 12:38:51 +0000</bug_when>
    <thetext>I&apos;d guess that as well but I don&apos;t know how to test this exactly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125822</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-12 13:50:11 +0000</bug_when>
    <thetext>https://html.spec.whatwg.org/multipage/syntax.html#adoption-agency-algorithm

step 5

[[
Let formatting element be the last element in the list of active formatting elements that:

is between the end of the list and the last marker in the list, if any, or the start of the list otherwise, and
has the tag name subject.
If there is no such element, then abort these steps and instead act as described in the &quot;any other end tag&quot; entry above.
]]

so

&lt;b&gt;&lt;object&gt;&lt;/b&gt;x

has a marker, so &lt;/b&gt; is handled like &quot;any other end tag&quot;.

vs

&lt;b&gt;&lt;button&gt;&lt;/b&gt;x

has no marker, so AAA reparents.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4049</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125823</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-12 13:52:02 +0000</bug_when>
    <thetext>Tested by https://github.com/html5lib/html5lib-tests/blob/6234baeabc51f6d51d1cfc2c4e4656bd99531f2b/tree-construction/adoption01.dat#L30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125828</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-12 14:02:26 +0000</bug_when>
    <thetext>&lt;template&gt; does insert a marker but was not mentioned. Also don&apos;t see a test for that in html5lib-tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125829</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-12 14:28:18 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/1036</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125830</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-04-12 14:29:10 +0000</bug_when>
    <thetext>https://github.com/html5lib/html5lib-tests/issues/73</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>