Sha256: 3e252480dcecfe9245e16680ed602810e6a1c967e64edfc49f367a22b007a79f

Contents?: true

Size: 529 Bytes

Versions: 163

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true
module Nokogiri
  module XML
    class EntityReference < Nokogiri::XML::Node
      def children
        # libxml2 will create a malformed child node for predefined
        # entities. because any use of that child is likely to cause a
        # segfault, we shall pretend that it doesn't exist.
        #
        # see https://github.com/sparklemotion/nokogiri/issues/1238 for details
        NodeSet.new(document)
      end

      def inspect_attributes
        [:name]
      end
    end
  end
end

Version data entries

163 entries across 156 versions & 6 rubygems

Version Path
nokogiri-1.12.0.rc1-x86_64-linux lib/nokogiri/xml/entity_reference.rb
nokogiri-1.12.0.rc1-x86_64-darwin lib/nokogiri/xml/entity_reference.rb
nokogiri-1.12.0.rc1-x86-mingw32 lib/nokogiri/xml/entity_reference.rb
nokogiri-1.12.0.rc1-x86-linux lib/nokogiri/xml/entity_reference.rb
nokogiri-1.12.0.rc1-arm64-darwin lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7 lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-x86_64-linux lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-x86_64-darwin lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-x86-mingw32 lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-x86-linux lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-x64-mingw32 lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-java lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.7-arm64-darwin lib/nokogiri/xml/entity_reference.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.1-x86_64-linux/lib/nokogiri/xml/entity_reference.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/xml/entity_reference.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.11.6-x86_64-linux/lib/nokogiri/xml/entity_reference.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/nokogiri-1.11.3-x86_64-linux/lib/nokogiri/xml/entity_reference.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/nokogiri-1.11.1-x86_64-linux/lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.6 lib/nokogiri/xml/entity_reference.rb
nokogiri-1.11.6-x86_64-linux lib/nokogiri/xml/entity_reference.rb