Article View: microsoft.public.inetsdk.programming.wininet
Article #2Re: Trying to get CSS StyleSheet rules (HTML test source codes)
From: danieldc
Date: Thu, 03 Aug 2006 13:27
Date: Thu, 03 Aug 2006 13:27
52 lines
2564 bytes
2564 bytes
I have 2 small HTML files to test.
Maybe someone can arrive at the point.
Thanks,
yours, Daniel
XPTO-WORKs.htm
<HTML>
<HEAD>
<TITLE>This HTML file is ok to parse!</TITLE>
<LINK href="mycustom.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
<P class="class1">1st line of text, class 1</p>
<P class="class2">2nd line of text, class 2</p>
<P class="class3">3rd line of text, class 3</p>
</BODY>
</HTML>
Now, this is the "malicious" HTML file:
R2D2-TROUBLED.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from some place -->
<!-- another comment here -->
<HTML>
<HEAD>
<TITLE>This HTML file causes iStyleSheet.rules property to
fail!!!!</TITLE>
<LINK href="mycustom.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
<P class="class1">1st line of text, class 1, red</p>
<P class="class2">2nd line of text, class 2, green</p>
<P class="class3">3rd line of text, class 3, blue</p>
</BODY>
</HTML>
And the simple "mycustom.css" file:
p.class1 { color:red; }
p.class2 { color:green; }
p.class3 { color:blue; }
Technical Details
Message-ID:
<1154611678.840257.320960@m79g2000cwm.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m79g2000cwm.googlegroups.com!not-for-mailReferences:
<1154457789.427318.252440@s13g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 115f11,e28ed9ee2bf0906 X-Google-Thread: 1036eb,e580e471b8675c04,start X-Google-Attributes: gid115f11,gid1036eb,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m79g2000cwm.googlegroups.com!not-for-mail From: "danieldc" <danielgudang@gmail.com> Newsgroups: microsoft.public.inetsdk.programming.wininet,borland.public.delphi.internet.winsock Subject: Re: Trying to get CSS StyleSheet rules (HTML test source codes) Date: 3 Aug 2006 06:27:58 -0700 Organization: http://groups.google.com Lines: 53 Message-ID: <1154611678.840257.320960@m79g2000cwm.googlegroups.com> References: <1154457789.427318.252440@s13g2000cwa.googlegroups.com> NNTP-Posting-Host: 161.148.112.51 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1154611683 15785 127.0.0.1 (3 Aug 2006 13:28:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Aug 2006 13:28:03 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; NetCaptor 7.5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 netappbsb2 (NetCache NetApp/6.0.3P2), 1.1 netappbsb2 (NetCache NetApp/6.0.3P2) Complaints-To: groups-abuse@google.com Injection-Info: m79g2000cwm.googlegroups.com; posting-host=161.148.112.51; posting-account=urqTwAwAAABGsJrf9-fN6VstE6YuU32f