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 10139 - active form element markers are never removed
Summary: active form element markers are never removed
Status: VERIFIED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P1 critical
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-13 01:49 UTC by Eric Seidel
Modified: 2010-12-01 15:28 UTC (History)
6 users (show)

See Also:


Attachments

Description Eric Seidel 2010-07-13 01:49:39 UTC
active form element markers are never removed

This affects the following test case (and probably many others:

<table><b><td></table>foo
Minefield:
| <html>
|   <head>
|   <body>
|     <b>
|     <table>
|       <tbody>
|         <tr>
|           <td>
|     <b>
|       "foo"


WebKit trunk:
| <html>
|   <head>
|   <body>
|     <b>
|     <table>
|       <tbody>
|         <tr>
|           <td>
|     "foo"

In looking to fix our behavior to match mozilla, I realized the reason we don't make "foo" bold, is that there is still a marker on the active form elements list after completion of the table.

Interestingly enough, for:

<b><table><td></table>foo

Both Minefield and TOT WebKit agree:
| <html>
|   <head>
|   <body>
|     <b>
|       <table>
|         <tbody>
|           <tr>
|             <td>
|       "foo"
Comment 1 Eric Seidel 2010-07-13 21:24:13 UTC
nevermind.  I just misread:
http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker

There is still a behavior difference between

<b><table><td></table>foo

and

<table><b><td></table>foo

But if that's a bug, that's a separate issue.  So closing this one.