This is private init routine from P.java (<P> tag):

-------------
    /**
        Private initialization routine.
    */
    {
        setElementType("p");
        setNeedClosingTag(false);
    }
-------------

This explains the 'false' setting for P. And Meta is a
SinglePartElement, so it doesn't have a closing tag at all.

Hope this helps.

Bojan

Basil Bourque wrote:
> 
> Two related questions (probably a naive newbie question):
> 
> The JavaDoc for the setNeedClosingTag() method says that default is "true",
> but it seems to be "false" to me. I have to call setNeedClosingTag(true)
> explicitly on each use of elements such as P and Meta.
> 
> Is there a way to set a default for all the elements to include their
> closing tag?
> 
> --Basil Bourque
> 
> --
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]


--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to