Closed Bug 3650 Opened 26 years ago Closed 26 years ago

[BLOCK] Style rules with an attribute selector that is a parent of a descendant selector don't work when applied to table rows and cells

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: hyatt, Assigned: peterl-retired)

Details

In the following HTML: <html> <head> <style> tr[name="foo"] td { background-color: yellow; } </style> </head> <body> <button onclick="document.getElementById('row1').setAttribute('name', 'foo')"> Click me to turn all cells in row 1 yellow! </button> <table> <tr id="row1">This<td>could<td>be<td>a<td>really<td>yellow<td>row</tr> <tr><td>This<td>is<td>not<td>a<td>yellow<td>row</tr> </table> </body> </html> Click on the button in the sample file. All cells in the first row should turn yellow. They don't. This bug completely prevents a XUL-based tree widget from working, since opening and closing are handled on a parent node via an attribute selector (which is what you have to use to know whether or not to display the child nodes or not). This is a critical blocker for the tree widget to work in pure XUL.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Using the 3/26 build on Win 95, Win NT, Win 98, Mac85. and Linux with the sample included in the description, test works correctly. Verifying bug fixed.
Using the 3/26 build on Win 95, Win NT, Win 98, Mac85. and Linux with the sample included in the description, test works correctly. Verifying bug fixed.
You need to log in before you can comment on or make changes to this bug.