Article View: aus.computers.java
Article #943What is this tag <p-implied>?
From: Tony F. White
Date: Wed, 19 Jan 2000 00:00
Date: Wed, 19 Jan 2000 00:00
26 lines
1614 bytes
1614 bytes
I get a <p-implied> tag in my html code this happens when I insert a base
tag into a htmlDocument I have no idea what it does or why it is there, can
anyone tell me why it is there, and how to stop it being put in
This is the code I am using to insert the <BASE> tag into the document
// Iterate through the elements of the HTML document.
ElementIterator it = new ElementIterator(doc);
javax.swing.text.Element elem;
elem = it.first();
while ((elem = it.next()) != null)
if (HTML.Tag.HEAD.equals(HTML.getTag (elem.getName())))
SimpleAttributeSet tag = new SimpleAttributeSet();
SimpleAttributeSet s = new SimpleAttributeSet();
s.addAttribute(HTML.Attribute.HREF,urlBase.trim());
tag.addAttribute(HTML.Tag.BASE,s);
doc.insertString(elem.getEndOffset()," ",tag);
}
}
thanks for you help in advance.
Technical Details
Message-ID:
<3885062e$1_2@news.ausmail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,919844c8b983dcf0,start X-Google-Attributes: gidf5d71,public X-Google-Thread: 10a146,919844c8b983dcf0,start X-Google-Attributes: gid10a146,public X-Google-Thread: 10d6db,919844c8b983dcf0,start X-Google-Attributes: gid10d6db,public From: "Tony F. White" <tony@worldlingo.com> Subject: What is this tag <p-implied>? Date: 2000/01/19 Message-ID: <3885062e$1_2@news.ausmail.com> X-Deja-AN: 574473885 X-Trace: 19 Jan 2000 10:32:46 +1000, 210.9.46.50 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.programmer X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300