1 21 package au.id.jericho.lib.html; 22 23 final class StartTagTypeUnregistered extends StartTagType { 24 static final StartTagTypeUnregistered INSTANCE=new StartTagTypeUnregistered(); 25 26 private StartTagTypeUnregistered() { 27 super("unregistered",START_DELIMITER_PREFIX,">",null,false,false,false); 28 } 29 30 protected Tag constructTagAt(final Source source, final int pos) { 31 final int closingDelimiterPos=source.getParseText().indexOf('>',pos+1); 32 if (closingDelimiterPos==-1) return null; 33 final Tag tag=constructStartTag(source,pos,closingDelimiterPos+1,"",null); 34 if (source.isLoggingEnabled()) source.log(source.getRowColumnVector(tag.getBegin()).appendTo(new StringBuffer (200).append("Encountered possible StartTag ").append(tag).append(" at ")).append(" whose content does not match a registered StartTagType").toString()); 35 return tag; 36 } 37 } 38 | Popular Tags |