diff --git a/REXML/Parsers/BaseParser.html b/REXML/Parsers/BaseParser.html index d713afbf..4f2b8228 100644 --- a/REXML/Parsers/BaseParser.html +++ b/REXML/Parsers/BaseParser.html @@ -387,7 +387,7 @@

Public Instance Methods

-
# File lib/rexml/parsers/baseparser.rb, line 526
+            
# File lib/rexml/parsers/baseparser.rb, line 530
 def entity( reference, entities )
   return unless entities
 
@@ -439,7 +439,7 @@ 

Public Instance Methods

Escapes all possible entities

-
# File lib/rexml/parsers/baseparser.rb, line 537
+            
# File lib/rexml/parsers/baseparser.rb, line 541
 def normalize( input, entities=nil, entity_filter=nil )
   copy = input.clone
   # Doing it like this rather than in a loop improves the speed
@@ -593,7 +593,7 @@ 

Public Instance Methods

Unescapes all possible entities

-
# File lib/rexml/parsers/baseparser.rb, line 553
+            
# File lib/rexml/parsers/baseparser.rb, line 557
 def unnormalize( string, entities=nil, filter=nil )
   if string.include?("\r")
     rv = string.gsub( Private::CARRIAGE_RETURN_NEWLINE_PATTERN, "\n" )
diff --git a/REXML/Parsers/StreamParser.html b/REXML/Parsers/StreamParser.html
index 00efc30c..8628f7f7 100644
--- a/REXML/Parsers/StreamParser.html
+++ b/REXML/Parsers/StreamParser.html
@@ -118,7 +118,6 @@ 

Public Class Methods

def initialize source, listener @listener = listener @parser = BaseParser.new( source ) - @tag_stack = [] end
@@ -146,7 +145,7 @@

Public Instance Methods

-
# File lib/rexml/parsers/streamparser.rb, line 13
+            
# File lib/rexml/parsers/streamparser.rb, line 12
 def add_listener( listener )
   @parser.add_listener( listener )
 end
@@ -169,28 +168,21 @@

Public Instance Methods

-
# File lib/rexml/parsers/streamparser.rb, line 17
+            
# File lib/rexml/parsers/streamparser.rb, line 16
 def parse
   # entity string
   while true
     event = @parser.pull
     case event[0]
     when :end_document
-      unless @tag_stack.empty?
-        tag_path = "/" + @tag_stack.join("/")
-        raise ParseException.new("Missing end tag for '#{tag_path}'",
-                                 @parser.source)
-      end
       return
     when :start_element
-      @tag_stack << event[1]
       attrs = event[2].each do |n, v|
         event[2][n] = @parser.unnormalize( v )
       end
       @listener.tag_start( event[1], attrs )
     when :end_element
       @listener.tag_end( event[1] )
-      @tag_stack.pop
     when :text
       unnormalized = @parser.unnormalize( event[1] )
       @listener.text( unnormalized )
diff --git a/REXML/Parsers/TreeParser.html b/REXML/Parsers/TreeParser.html
index 6182a584..9a317b79 100644
--- a/REXML/Parsers/TreeParser.html
+++ b/REXML/Parsers/TreeParser.html
@@ -170,7 +170,6 @@ 

Public Instance Methods

# File lib/rexml/parsers/treeparser.rb, line 17
 def parse
-  tag_stack = []
   entities = nil
   begin
     while true
@@ -178,19 +177,13 @@ 

Public Instance Methods

#STDERR.puts "TREEPARSER GOT #{event.inspect}" case event[0] when :end_document - unless tag_stack.empty? - raise ParseException.new("No close tag for #{@build_context.xpath}", - @parser.source, @parser) - end return when :start_element - tag_stack.push(event[1]) el = @build_context = @build_context.add_element( event[1] ) event[2].each do |key, value| el.attributes[key]=Attribute.new(key,value,self) end when :end_element - tag_stack.pop @build_context = @build_context.parent when :text if @build_context[-1].instance_of? Text diff --git a/js/search_index.js.gz b/js/search_index.js.gz index b8a5f41b..0bdb46b6 100644 Binary files a/js/search_index.js.gz and b/js/search_index.js.gz differ