Changeset 1435 for trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogParser.java
- Timestamp:
- 03/06/14 10:28:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/HTMLLogParser.java
r1416 r1435 155 155 156 156 if (parent != null) { 157 if (!childrenMustBeConsidered(parent)) { 158 return true; 159 } 160 157 161 IGUIElement document = parent; 158 162 … … 196 200 197 201 specification = new HTMLPageElementSpec 198 ((HTMLDocumentSpec) document.getSpecification(), tagName, htmlId, index); 202 ((HTMLDocumentSpec) document.getSpecification(), 203 tagName.intern(), htmlId == null ? null : htmlId.intern(), index); 199 204 200 205 } … … 624 629 } 625 630 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 626 649 }
Note: See TracChangeset
for help on using the changeset viewer.