This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28433 - Parser: a marker is not inserted when entering button
Summary: Parser: a marker is not inserted when entering button
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Simon Pieters
QA Contact: contributor
URL: https://html.spec.whatwg.org/#concept...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 07:52 UTC by contributor
Modified: 2016-04-12 14:29 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2015-04-08 07:52:56 UTC
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't say "insert a marker" for <button>.

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)
Comment 1 Ian 'Hixie' Hickson 2015-04-09 19:10:47 UTC
I'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'm guessing the note...
Comment 2 Simon Pieters 2015-04-15 12:38:51 UTC
I'd guess that as well but I don't know how to test this exactly
Comment 3 Simon Pieters 2016-04-12 13:50:11 UTC
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 "any other end tag" entry above.
]]

so

<b><object></b>x

has a marker, so </b> is handled like "any other end tag".

vs

<b><button></b>x

has no marker, so AAA reparents.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4049
Comment 5 Simon Pieters 2016-04-12 14:02:26 UTC
<template> does insert a marker but was not mentioned. Also don't see a test for that in html5lib-tests.
Comment 6 Simon Pieters 2016-04-12 14:28:18 UTC
https://github.com/whatwg/html/pull/1036
Comment 7 Simon Pieters 2016-04-12 14:29:10 UTC
https://github.com/html5lib/html5lib-tests/issues/73