builder namespaces are broken #384

Closed
flavorjones opened this Issue Dec 9, 2010 · 3 comments

Comments

Projects
None yet
3 participants
@flavorjones
Member

flavorjones commented Dec 9, 2010

this code:

Nokogiri::XML::Builder.new { |xml| xml['foo'].bar }

results in this error:

/home/miked/.rvm/gems/ruby-1.8.7-p302/gems/nokogiri-1.4.4/lib/nokogiri/xml/builder.rb:315:in `[]': undefined method `namespace_definitions' for #<Nokogiri::XML::Document:0x3f9e4ccf7fe0 name="document"> (NoMethodError)

when it should result in a tag like:

<foo:bar />
@orangethunder

This comment has been minimized.

Show comment
Hide comment
@orangethunder

orangethunder Sep 18, 2011

Still happens in 1.5.0. Is there a work-around?

Still happens in 1.5.0. Is there a work-around?

@flavorjones

This comment has been minimized.

Show comment
Hide comment
@flavorjones

flavorjones Sep 19, 2011

Member

Not yet.

Member

flavorjones commented Sep 19, 2011

Not yet.

@ccutrer

This comment has been minimized.

Show comment
Hide comment
@ccutrer

ccutrer Feb 18, 2015

Contributor

This is fixed in 1.5.8

Contributor

ccutrer commented Feb 18, 2015

This is fixed in 1.5.8

@flavorjones flavorjones closed this Mar 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment