-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] EvenRow and OddRow reversed? #8738
Comments
The table
|
The first row in a table should be the header, so the first "data" row is no. 1. -- But we can not change that any more. |
Ok, so if we create a table for the wiki core using |
|
It seem at the moment the TW table syntax also counts a table-header if there is one. CSS nth-of-type(even) only uses the rows in the TBODY element and it starts with 1. |
Hi @pmario in what way does the table parser not product valid HTML table syntax? I understand that the odd and even classes are reversed, but that is not an error of HTML syntax. Is there anything else wrong with it? |
@Jermolene -- Sorry bad wording. There is nothing else wrong with it. Only the counter is wrong. |
Then I think that sadly backwards compatibility constrains us to leave things as they area, but it would be great to update the documentation to call attention to it. |
Describe the bug
While creating a table using a filter I wanted to apply the
evenRow
andoddRow
classes.The way I did it, the first row "1" would get the
oddRow
class because "1" is odd if I recall correctly.Then I compared with how TiddlyWiki parses the
| this is a table cell | this is another table cell |
constructs and I've seen that the first row gets theevenRow
class.Is this a bug or is there a reason for this?
Expected behavior
I would expect the first row to have the
oddRow
class applied.I don't believe it should be
evenRow
- even if we think that it has index0
- it's the 1st row.To Reproduce
No response
Screenshots
No response
TiddlyWiki Configuration
Current prerelease
Additional context
No response
The text was updated successfully, but these errors were encountered: