* lib/rexml/cdata.rb,lib/rexml/quickpath.rb,lib/rexml/parsers/baseparser.rb:
avoid warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
50e7c1c149
commit
e08f18becd
@ -4,7 +4,7 @@ module REXML
|
|||||||
class CData < Text
|
class CData < Text
|
||||||
START = '<![CDATA['
|
START = '<![CDATA['
|
||||||
STOP = ']]>'
|
STOP = ']]>'
|
||||||
ILLEGAL = /(]]>)/
|
ILLEGAL = /(\]\]>)/
|
||||||
|
|
||||||
# Constructor. CData is data between <![CDATA[ ... ]]>
|
# Constructor. CData is data between <![CDATA[ ... ]]>
|
||||||
#
|
#
|
||||||
|
@ -263,9 +263,9 @@ module REXML
|
|||||||
raise REXML::ParseException.new( "error parsing notation: no matching pattern", @source )
|
raise REXML::ParseException.new( "error parsing notation: no matching pattern", @source )
|
||||||
end
|
end
|
||||||
return [ :notationdecl, md[1], md[2], md[3] ]
|
return [ :notationdecl, md[1], md[2], md[3] ]
|
||||||
when /^\s*]\s*>/um
|
when /^\s*\]\s*>/um
|
||||||
@document_status = :after_doctype
|
@document_status = :after_doctype
|
||||||
@source.match( /^\s*]\s*>/um, true )
|
@source.match( /^\s*\]\s*>/um, true )
|
||||||
return [ :end_doctype ]
|
return [ :end_doctype ]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -31,7 +31,7 @@ module REXML
|
|||||||
results = filter([element], path)
|
results = filter([element], path)
|
||||||
when /^\*/u
|
when /^\*/u
|
||||||
results = filter(element.to_a, path)
|
results = filter(element.to_a, path)
|
||||||
when /^[[!\w:]/u
|
when /^[\[!\w:]/u
|
||||||
# match on child
|
# match on child
|
||||||
matches = []
|
matches = []
|
||||||
children = element.to_a
|
children = element.to_a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user