Skip to content

improve documentation for CSS.xpath_for, and reorganize css tests#3224

Merged
flavorjones merged 3 commits intomainfrom
flavorjones-reorganize-css-tests
Jun 11, 2024
Merged

improve documentation for CSS.xpath_for, and reorganize css tests#3224
flavorjones merged 3 commits intomainfrom
flavorjones-reorganize-css-tests

Conversation

@flavorjones
Copy link
Member

What problem is this PR intended to solve?

  • Reorganize the CSS tests so they're all under test/css and all named something that starts with Nokogiri::CSS, which should make it easier to isolate and run them as we improve the parser.
  • Improve the documentation for CSS.xpath_for since this is the sole entry point into the CSS parser for advanced users.

Have you included adequate test coverage?

N/A

Does this change affect the behavior of either the C or the Java implementations?

N/A

so that I can run them all with `-n/Nokogiri::CSS/` while I'm
developing the SyntaxTree integration.
Note that the docs previously incorrectly stated the return value type
as String, when it's actually an Array<String>.

Also added examples and linked out to other sections for more
information on supported CSS syntax and advanced features.
@flavorjones flavorjones merged commit be379f4 into main Jun 11, 2024
@flavorjones flavorjones deleted the flavorjones-reorganize-css-tests branch June 11, 2024 16:06
@flavorjones flavorjones changed the title improve documenttion for CSS.xpath_for, and reorganize css tests improve documentation for CSS.xpath_for, and reorganize css tests Jun 11, 2024
@flavorjones flavorjones added this to the v1.17.0 milestone Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant