GithubHelp home page GithubHelp logo

html-table's People

Contributors

danieldevine avatar nyamsprod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danieldevine

html-table's Issues

Default headers to first mostly-populated row if no thead

There are so many poorly-formatted tables out there...

Here's one I'm working with. What I'd like the library to do is see that there's no thead and instead using the first tr with th's in it.

It's not great, but I think it's likely to be right some of the time.

<table style="width:100%" class="table-popup tbl-scores-standing">
    <tr>
        <td colspan="7">
            <hr id="table-separators-invisible">
        </td>
    </tr>
    <tr>
        <td colspan="7">
            <div class="modal-table-header" id="scores-title">Fall 2023

                Varsity
                Football
                (as of
                02-16-24)</div>
        </td>
    </tr>
    <tr>
        <td colspan="7">
            <hr id="table-separators-thick">
        </td>
    </tr>
    <tr>
        <th class="table-row-headers">Date</th>
        <th class="table-row-headers">Time</th>
        <th class="table-row-headers">Event Type</th>
        <th class="table-row-headers opponents">Opponent</th>
        <th class="table-row-headers">Loc.</th>
        <th class="table-row-headers">Score</th>
        <th class="table-row-headers">W/L/T</th>
        <th class="table-row-headers comments">Comments</th>
    </tr>
    <tr>
        <td colspan="6">
            <hr id="table-separators-thick">
        </td>
    </tr>

return td/tr attributes when parsing

Feature Request

Q A
New Feature yes
BC Break no

Proposal

I'd like to see the tr/td attributes. I'm parsing a table where the key id is never displayed.

<tr class="table-data-styles">
        <td data-event="842349">08-25-23</td>
        <td class="time">07:00 PM</td>
        <td>Game</td>
</tr>

If this already exists, can you point me to the docs? Thanks, cool library, I've worked on variations of this over the years and have always hoped someone else would write it! And it's integrated with league/csv!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.