Skip to content

Why that strict table structure? #20

@RoSk0

Description

@RoSk0

I need to test tables which has headers as a first column , so no thead element.

I went on reading HTML specs to understand if my project produces bad markup , but no, thead is optional as the tbody . Found also very interesting examples of perfectly valid tables here https://www.w3.org/WAI/tutorials/tables/two-headers/.

So my main question is why this project limits the table structure ?

I've done some hackery and I can see that even plain <table><tr><td>Series offered</td><td></td></tr><tr><td></td><td></td></tr></table> is perfectly parsable with minor logic change in HTMLStringTableParser::parseTable().

I understand that comparators are focused on columns at the moment , but that could be change or rather extended.

Extending this project with this type of functionality would rather big task and I want to make sure it is going to be considered/accepted before starting work.

Are there any issues with removing those hard requirements on table structure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions