jlong / radius

A small, but powerful tag-based template language for Ruby modeled after the ones used in MovableType and TextPattern. It has tags similar to XML, but can be used to generate any form of plain text (HTML, e-mail, etc...).
MIT License
101 stars 21 forks source link

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

Open ronald opened 4 years ago

ronald commented 4 years ago

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