Closed
Bug 336856
Opened 19 years ago
Closed 19 years ago
Binding attached to table sees table as tbody only
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: schools_ring, Unassigned)
Details
(Keywords: testcase)
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Binding attached to table sees table as tbody only, at least the anonymous content injector does.
Reproducible: Always
Steps to Reproduce:
1. HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Hello world!</title>
<style type="text/css">
table {
-moz-binding: url(table.xml#default);
}
</style>
</head
><body
><table
><caption>Caption</caption
><thead
><tr
><th>Header 1</th
><th>Header 2</th
><th>Header 3</th
></tr
></thead
><tfoot
><tr
><td>Footnote 1</td
><td>Footnote 2</td
><td>Footnote 3</td
></tr
></tfoot
><tbody
><tr
><td>Content 1</td
><td>Content 2</td
><td>Content 3</td
></tr
></tbody
></table
></body
></html>
2. table.xml
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="default">
<content><html:b>Hello!</html:b><children/><html:b>Hello!</html:b></content>
</binding>
</bindings>
Actual Results:
Anonymous content inserted around tbody section of the table.
Expected Results:
Anonymous content inserted around the table itself.
Comment 1•19 years ago
|
||
Why do you expect th anonymous content inserted around the table itself?
The <children/> is for the children of the table, not the table itself.
(In reply to comment #1)
> Why do you expect th anonymous content inserted around the table itself?
> The <children/> is for the children of the table, not the table itself.
Sorry, wrong wording: should be said "around the table content" - where "table content" evidently includes caption, thead and tfoot as well as tbody.
But obviously the nature of the bug was not described properly (should I refile?). As the attached screenshot shows - XBL inserts anonymous content at the right places, but rendering engine places it around the tbody content, not around the table content.
Comment 3•19 years ago
|
||
Comment 4•19 years ago
|
||
This testcase, using regular dom methods, is acting the same, so this is more a table layout issue (if it is an issue at all, I don't really know how this should render).
IE6 decides to completely not render the inserted content, which is not correct, I think.
Updated•19 years ago
|
Assignee: general → nobody
Component: XBL → Layout: Tables
Keywords: testcase
QA Contact: ian → layout.tables
Comment 5•19 years ago
|
||
The layout looks correct. Note that <thead> has display:table-header-group, <tfoot> has display:table-footer-group, and <tbody> has display:table-row-group. You're inserting nodes that are not any of the above, so they're wrapped in a table-row-group, so they act like <tbody>s. And you get the observed rendering. If you change the display types appropriately, you can get the rendering you seem to want.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•