Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radius::OrdString does not work as Nokogiri css selector #24

Open
ronald opened this issue Mar 2, 2020 · 1 comment
Open

Radius::OrdString does not work as Nokogiri css selector #24

ronald opened this issue Mar 2, 2020 · 1 comment

Comments

@ronald
Copy link

ronald commented Mar 2, 2020

Not sure if this is the appropriate place...

I'm having an issue using RadiantCMS (unofficial branch) on Ruby 2.6 with Nokogiri 1.10.9 and Radius 0.7.5

In my case the selector is comming from Tag-Attribute which is a Radius::OrdString which breaks the Nokogiri-Selection:

selector = Radius::OrdString.new('div')
Nokogiri("<div></div>").css(selector).size

=> 0

While this works:

selector = 'div'
Nokogiri("<div></div>").css(selector).size

=> 1

@saturnflyer
Copy link
Collaborator

saturnflyer commented Dec 24, 2024

This seems to work

selector = Radius::OrdString.new('div')
Nokogiri("<div></div>").css(selector.to_s).size #=> 1

is that a possible solution?

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

No branches or pull requests

2 participants