randym/axlsx — Issue #47: Nokogiri 1.5.1 breaks css selectors
Author: randym
Created: 2012-03-09 10:46:14+00:00
State: open

Specs will fail with Nokogiri 1.5.1

1) Error:
test_drawings_and_charts_need_content_types(TestContentType):
Nokogiri::XML::XPath::SyntaxError: Invalid expression: //xmlns:Types//xmlns:Override[@xmlns:@ContentType = 'application/vnd.openxmlformats-officedocument.drawing+xml']
/Users/randym/.rvm/gems/ruby-1.9.3-p0@axlsx/gems/nokogiri-1.5.1/lib/nokogiri/xml/node.rb:159:in `evaluate'
/Users/randym/.rvm/gems/ruby-1.9.3-p0@axlsx/gems/nokogiri-1.5.1/lib/nokogiri/xml/node.rb:159:in `block in xpath'
/Users/randym/.rvm/gems/ruby-1.9.3-p0@axlsx/gems/nokogiri-1.5.1/lib/nokogiri/xml/node.rb:150:in `map'
/Users/randym/.rvm/gems/ruby-1.9.3-p0@axlsx/gems/nokogiri-1.5.1/lib/nokogiri/xml/node.rb:150:in `xpath'
/Users/randym/.rvm/gems/ruby-1.9.3-p0@axlsx/gems/nokogiri-1.5.1/lib/nokogiri/xml/node.rb:214:in `css'
/Users/randym/Work/axlsx/test/content_type/tc_content_type.rb:74:in `test_drawings_and_charts_need_content_types'

Guessing it is from the new namespaces css selectors.

Does not effect the gem, but 3 specs relying on .css now go boom