Closed Bug 15799 Opened 26 years ago Closed 22 years ago

Border attribute of TABLE element does not distinguish cells

Categories

(Core :: XML, defect, P3)

All
Windows 95
defect

Tracking

()

RESOLVED DUPLICATE of bug 68061
Future

People

(Reporter: christinehoff4, Assigned: nisheeth_mozilla)

References

Details

(Keywords: css2)

Attachments

(2 files, 2 obsolete files)

Using Commercial build 1999100618 Apprunner. Open attached file. If you are unable, here is the code: <?xml version="1.0"?> <doc> <test xmlns:html="http://www.w3.org/TR/REC-html40"> <html:br/> <html:table border="10"> <html:tr> <html:td>First row, first column </html:td> <html:td>First row, second column </html:td> </html:tr> <html:tr> <html:td>Second row, first column </html:td> <html:td>Second row, second column </html:td> </html:tr> </html:table> </test> </doc> Expected result: Border should distinquish cells. Actual result: Border does not distinquish cells.
Attached file Test case to demonstrate problem (obsolete) —
Might this be related to the value of border-collapse? See bug 9191. [tentatively marking {css2} since it is likely that this can also be reproduced using the relevant combination of CSS rules that BORDER emulates. Actually doing this is left as an exercise to the reader.]
Status: NEW → ASSIGNED
Target Milestone: M13
Setting milestone to M13 for now...
Could this be related to attribute mapping of border="" to frame="border" that may not be happening in XML. Should it...? I should investigate this further...
David: border="" would never map to frame="border". Only border on its own would map to frame="border". border="" is setting a value for the attribute 'border'. In any case, in XML there are no "abbreviation" type things, so border on its own would be a well-formedness constraint violation.
No. Read http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.3.1 , which says: # The following settings should be observed by user agents for backwards # compatibility. # * Setting border="0" implies frame="void" and, unless otherwise specified, # rules="none". # * Other values of border imply frame="border" and, unless otherwise # specified, rules="all". # * The value "border" in the start tag of the TABLE element should be # interpreted as the value of the frame attribute. It implies rules="all" # and some default (non-zero) value for the border attribute. Although it doesn't say so, I think this attribute mapping should be reflected in the DOM. However, I'm not sure whether it should occur in XHTML, so this bug may or may not be valid.
Oh, _that_ attribute remapping. I thought you meant the SGML minimalisation features... :-/ Yes, that _does_ apply to XHTML (I think), since XHTML considers HTML 4.01 as normative. As to whether this should be reflected in the DOM, you should know better than me...
Moving non beta-stoppers to M16...
Migrating from {css2} to css2 keyword. The {css1}, {css2}, {css3} and {css-moz} radars should now be considered deprecated in favour of keywords. I am *really* sorry about the spam...
Keywords: css2
Summary: {css2} Border attribute of TABLE element does not distinquish cells → Border attribute of TABLE element does not distinquish cells
Since it might be related to HTML4's attribute mapping rules, I'm adding the dependency on the HTML4 meta bug.
Blocks: html4.01
Target Milestone: M16 → M17
Moving bugs out by one milestone...
This bug has been marked "future" because the original netscape engineer working on this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
Target Milestone: M17 → Future
Note: The testcase uses a non-standard namespace URI.
QA Contact: chrisd → petersen
I find that it works using xmlns= and <table>, <tr>, <td>..., but not using xmlns:html= and <html:table>, <html:tr>, <html:td>. Compare attachments 17698 and 17700 above (which use the standard XHTML namespace).
Summary: Border attribute of TABLE element does not distinquish cells → Border attribute of TABLE element does not distinguish cells
This bug is still there! The following code reproduces the problem: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> <head> <title>Table Border Demo</title> </head> <body> <h1>Table Border Demo</h1> <table border="border"> <tr> <td>Cell 1</td><td>Cell 2</td> </tr> <tr> <td>Cell 3</td><td>Cell 4</td> </tr> </table> </body> </html> Save this file under "tableDemo.html" and you will get the expected results. Save this file under "tableDemo.xhtml" and the border will only be around the table, but not between cells.
QA Contact: petersen → rakeshmishra
QA Contact: rakeshmishra → ashishbhatt
I'm not sure if this is the same or not, but I'm guessing it is: I'm trying to build tables in javascript, and they only get a table border, not a cell border, even if I try adding a border attribute to the cells. This page has both a static and a dynamic table: http://alan.batie.org/js/t.html (scripts in http://alan.batie.org/js/t.js)
Actually, lo and behold, 1.5b just fixed it...
*** This bug has been marked as a duplicate of 68061 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Depends on: 428216
No longer depends on: 428216
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: