Closed
Bug 309433
Opened 20 years ago
Closed 19 years ago
[FIX]tr children of tables don't register in the rows collection XHTML
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: stryker330, Assigned: bzbarsky)
Details
(Keywords: testcase)
Attachments
(2 files, 1 obsolete file)
|
3.14 KB,
application/xhtml+xml
|
Details | |
|
11.35 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
tr children of table elements, i.e. tr that aren't inside tbody, thead, or tfoot
elements, aren't in the rows collection.
This is probably related to bug 309431.
Opera 8 has the correct behavior.
Reproducible: Always
Steps to Reproduce:
| Reporter | ||
Comment 1•20 years ago
|
||
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 2•19 years ago
|
||
This basically lists the rows in the following order:
thead
tbodies
orphans (not in table section)
tfoot
As long as a page doesn't mix tbodies and orphan rows, there's no issue, of course. ;)
Given that the DOM spec doesn't specify order for this collection, I'm perfectly happy with the behavior...
Assignee: general → bzbarsky
Status: NEW → ASSIGNED
Attachment #217907 -
Flags: superreview?(bugmail)
Attachment #217907 -
Flags: review?(bugmail)
| Assignee | ||
Updated•19 years ago
|
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Summary: tr children of tables don't register in the rows collection XHTML → [FIX]tr children of tables don't register in the rows collection XHTML
Target Milestone: --- → mozilla1.9alpha
Why not instead make the DO_FOR_EACH_ROWGROUP macro provide the rows collection rather then the rowgroup. So something like
#define DO_FOR_EACH_ROWGROUP(_code) \
PR_BEGIN_MACRO \
if (mParent) { \
/* THead */ \
nsCOMPtr<nsIDOMHTMLTableSectionElement> rowGroup; \
rv = mParent->GetTHead(getter_AddRefs(rowGroup)); \
NS_ENSURE_SUCCESS(rv, rv); \
nsCOMPtr<nsIDOMHTMLCollection> rows; \
if (rowGroup) { \
rowGroup->GetRows(getter_AddRefs(rows)); \
do { /* gives scoping */ \
_code \
} while (0); \
Then you can simply do
/* orphan rows */ \
rows = mOrphanRows; \
do { /* gives scoping */ \
_code \
} while (0); \
| Assignee | ||
Comment 4•19 years ago
|
||
Attachment #217907 -
Attachment is obsolete: true
Attachment #219204 -
Flags: superreview?(bugmail)
Attachment #219204 -
Flags: review?(bugmail)
Attachment #217907 -
Flags: superreview?(bugmail)
Attachment #217907 -
Flags: review?(bugmail)
Attachment #219204 -
Flags: superreview?(bugmail)
Attachment #219204 -
Flags: superreview+
Attachment #219204 -
Flags: review?(bugmail)
Attachment #219204 -
Flags: review+
| Assignee | ||
Comment 5•19 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•