Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C css-selector
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Symfony
  • css-selector
  • Merge requests
  • !3

For AND operator, the left operand should have parentheses, not only right

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/achasseux/and-left-operand-with-parentheses into master Feb 04, 2015
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: achasseux

Hello,

When CSS selector is translated into XPath, the following

e[foo!="bar"][foo!="baz"]

becomes :

e[not(@foo) or @foo != 'bar' and (not(@foo) or @foo != 'baz')]

It should become :

e[(not(@foo) or @foo != 'bar') and (not(@foo) or @foo != 'baz')]

This pull request adds the left-operand parentheses.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/achasseux/and-left-operand-with-parentheses