Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Comments

Case sensitivity and descendant issue selecting to much or wrong thing.#47

Closed
nedjs wants to merge 10 commits intogoogle:masterfrom
nedjs:master
Closed

Case sensitivity and descendant issue selecting to much or wrong thing.#47
nedjs wants to merge 10 commits intogoogle:masterfrom
nedjs:master

Conversation

@nedjs
Copy link
Contributor

@nedjs nedjs commented Jun 17, 2016

This commit is in regards to a few issues brought up and is very similar to @Sebmaster pull request at #41 Namespaces are handled slightly wrong. Since its been a few months since sebmasters commit went up I figured I would put this one in.

  • Removed toLowerCase() on node name storage and comparison. XPath is case sensitive.
  • Fixed descendant issue where nodes were being selected when they shouldn’t have when using variations of "//". Caused by the "Test" implementation not being invoked during recursive node matching when finding descendants.

Issues this fix addresses:
#46 wgxpath cannot evaluate upper case
#43 XML descendant problem


I did not commit any unit tests for this because I dont have any idea how to run them. It would probably be good to add a few for case sensitivity and for descendants.

Warning: I suck at git and my commits are a pile of garbage, IDK whats going on in there so i just merged master into it before I made the changes. I guess just ignore the rest.

…ication(*) to fail. Fixed regex to only group asteriks when part of a name space definition(:)
Conflicts:
	src/lexer.js
	src/nameTest.js
	src/parser.js
	src/wgxpath.js
… case sensitive.

- Fixed descendant issue where nodes were being selected when they shouldn’t have when using variations of "//". Caused by the "Test" not being invoked during recursive node matching when finding descendants.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

- Fixed name() and local-name() also converting to lower case unnecessary
@nedjs nedjs closed this Jun 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants