Ignore:
Timestamp:
03/06/14 10:28:28 (10 years ago)
Author:
pharms
Message:
  • extended parsing of HTML log files to support further case study
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogParser.java

    r1416 r1435  
    155155 
    156156            if (parent != null) { 
     157                if (!childrenMustBeConsidered(parent)) { 
     158                    return true; 
     159                } 
     160                 
    157161                IGUIElement document = parent; 
    158162                 
     
    196200 
    197201                specification = new HTMLPageElementSpec 
    198                     ((HTMLDocumentSpec) document.getSpecification(), tagName, htmlId, index); 
     202                    ((HTMLDocumentSpec) document.getSpecification(), 
     203                     tagName.intern(), htmlId == null ? null : htmlId.intern(), index); 
    199204                 
    200205            } 
     
    624629    } 
    625630 
     631    /** 
     632     * <p> 
     633     * checks if the children of a specified parent must be added to the GUI model or not. 
     634     * </p> 
     635     * 
     636     * @param parent the parent tag to check 
     637     *  
     638     * @return true, if the child of the tag must be considered, false else 
     639     */ 
     640    private boolean childrenMustBeConsidered(HTMLGUIElement parent) { 
     641        if (parent instanceof HTMLPageElement) { 
     642            return !"svg".equals(((HTMLPageElement) parent).getTagName()); 
     643        } 
     644        else { 
     645            return true; 
     646        } 
     647    } 
     648 
    626649} 
Note: See TracChangeset for help on using the changeset viewer.