private String prettyOutputStart ( String initialString ) { initialString += Reporter . ordinal ( match + 1 ) + " element with <i>" + type . toString ( ) + "</i> of <i>" + locator + "</i>" ; if ( parent != null ) { initialString = parent . prettyOutputStart ( initialString + " and parent of " ) ; } return initialString ; }
Builds the nicely HTML formatted output of the element by retrieving parent element information