Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/nodes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv977/lexer/nodes
Modified Files:
TagNode.java
Log Message:
Fix bug #902121 StringBean throws NullPointerException.
Added ScriptDecoder to handle Microsoft Script Encoder encrypted tags.
Added accessor to ScriptTag's scriptCode property to be able to override it.
Ensured that a Tag always has a non-null name.
Skip STYLE tags in StringBean, just like SCRIPT.
Index: TagNode.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/nodes/TagNode.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** TagNode.java 9 Feb 2004 02:09:44 -0000 1.30
--- TagNode.java 28 Feb 2004 15:52:43 -0000 1.31
***************
*** 601,605 ****
/**
! * A call to a tag's toHTML() method will render it in HTML.
* @see org.htmlparser.Node#toHtml()
*/
--- 601,607 ----
/**
! * Render the tag as HTML.
! * A call to a tag's <code>toHtml()</code> method will render it in HTML.
! * @return The tag as an HTML fragment.
* @see org.htmlparser.Node#toHtml()
*/
***************
*** 819,823 ****
raw = getRawTagName ();
! return ((null == raw) ? false : ('/' == raw.charAt (0)));
}
--- 821,825 ----
raw = getRawTagName ();
! return ((null == raw) ? false : ((0 != raw.length ()) && ('/' == raw.charAt (0))));
}
|