/[classpath]/classpath/gnu/xml/dom/html2/DomHTMLParser.java
ViewVC logotype

Diff of /classpath/gnu/xml/dom/html2/DomHTMLParser.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by audriusa, Tue Mar 22 15:12:56 2005 UTC revision 1.2 by gnu_andrew, Wed Mar 23 17:53:49 2005 UTC
# Line 151  public class DomHTMLParser Line 151  public class DomHTMLParser
151      AttributeSet hatts = getAttributes();      AttributeSet hatts = getAttributes();
152      NamedNodeMap natts = new_node.getAttributes();      NamedNodeMap natts = new_node.getAttributes();
153    
154      Enumeration enum = hatts.getAttributeNames();      Enumeration enumeration = hatts.getAttributeNames();
155      Object key;      Object key;
156      Node attribute;      Node attribute;
157    
158      while (hatts != null)      while (hatts != null)
159        {        {
160          while (enum.hasMoreElements())          while (enumeration.hasMoreElements())
161            {            {
162              key = enum.nextElement();              key = enumeration.nextElement();
163              attribute = document.createAttribute(key.toString());              attribute = document.createAttribute(key.toString());
164              attribute.setNodeValue(hatts.getAttribute(key).toString());              attribute.setNodeValue(hatts.getAttribute(key).toString());
165              natts.setNamedItem(attribute);              natts.setNamedItem(attribute);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26