Repository navigation
feat: || and :nth-col() were refused, so columns couldn't be selected - #103
Merged
Merged
Conversation
Syncs Netweir ff397ba, bringing netweir/netweir#338 by foothillsdigital: the column combinator and :nth-col()/:nth-last-col(), worked out with the HTML table model (colspan, rowspan including rowspan=0, colgroup spans), cached per query and linear on hostile tables.
jamesconwaydev
enabled auto-merge (squash)
November 19, 2026 10:39
This was referenced Nov 19, 2026
jamesconwaydev
added a commit
that referenced
this pull request
Nov 19, 2026
Syncs Netweir 57a359d (netweir/netweir#336) by foothillsdigital: SelectorList::parse_with takes ParseOptions declaring prefixes and a default namespace the way @namespace rules do, so svg|rect matches only SVG elements. parse declares none and is unchanged. With the column combinator from #103, that finishes #17.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
||,:nth-col()and:nth-last-col()were refused (part of #17). They select table cells by column, which only the table model can work out, sincecolspanandrowspanmove a cell away from its place in the row.Change
Syncs Netweir ff397ba, bringing netweir/netweir#338 by @foothillsdigital.
colgroupandcolspans;colspanandrowspan,rowspan=0included;||binary-searches thecols.:nth-col()counts as a pseudo-class;||adds nothing.Part of #17. Namespace prefixes come with netweir/netweir#336.
Tests
cargo test --workspace: 234 test groups, 0 failed. Tokenizer 7,045 and tree construction 3,898 passed, 0 failed.table_columnsandhostile_tables_lay_out_in_linear_timetests include 1,000colspan=1000cells followed by 50,000 rows, which runs in 0.11 s in a debug build.