incorrect class substitution in html
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
in the validated html5 document below, for some reason, calibre 1.0 rewrites the class for the second table to be the same as the class for the first table in the html in the converted epub document. not surprisingly, this means it is misrendered. I know now how to avoid this bug. but I think this is a bug...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=
<title>calibre html bug</title>
</head>
<body>
<div class="table">
<style scoped>
table.lrr tr td:nth-child(1) { text-align: left; }
table.lrr tr td:nth-child(2) { text-align: right; }
table.lrr tr td:nth-child(3) { text-align: right; }
</style>
<table class="lrr">
<tr> <td> Row </td><td> –0.257 </td><td> 0.128</td> </tr>
</table>
</div>
<div class="table">
<style scoped>
table.lrrrr tr td:nth-child(1) { text-align: left; }
table.lrrrr tr td:nth-child(2) { text-align: right; }
table.lrrrr tr td:nth-child(3) { text-align: right; }
table.lrrrr tr td:nth-child(4) { text-align: right; }
table.lrrrr tr td:nth-child(5) { text-align: right; }
</style>
<table class="lrrrr">
<tr> <td> </td><td>
<tr> <td>Row </td><td>
</table>
</div>
</body>
</html>
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased