зеркало из https://github.com/mozilla/pjs.git
Bug 714760 - Remove obsolete tests for the HTML parser. r=mrbkap.
This commit is contained in:
Родитель
2e4045f4a9
Коммит
2fe5038ac9
|
@ -56,14 +56,6 @@
|
|||
#define NS_CNAVDTD_CID \
|
||||
{ 0xa6cf9107, 0x15b3, 0x11d2, { 0x93, 0x2e, 0x0, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
// Class IID for the logging sink
|
||||
#define NS_LOGGING_SINK_CID \
|
||||
{0xa6cf9060, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
|
||||
|
||||
// {8323FAD0-2102-11d4-8142-000064657374}
|
||||
#define NS_VIEWSOURCE_DTD_CID \
|
||||
{ 0x8323fad0, 0x2102, 0x11d4, { 0x81, 0x42, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
|
||||
|
||||
// {FFF4FBE9-528A-4b37-819D-FC18F3A401A7}
|
||||
#define NS_EXPAT_DRIVER_CID \
|
||||
{ 0xfff4fbe9, 0x528a, 0x4b37, { 0x81, 0x9d, 0xfc, 0x18, 0xf3, 0xa4, 0x1, 0xa7 } }
|
||||
|
|
|
@ -73,7 +73,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsSAXAttributes)
|
|||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSAXXMLReader)
|
||||
|
||||
#if defined(NS_DEBUG)
|
||||
NS_DEFINE_NAMED_CID(NS_LOGGING_SINK_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_EXPAT_DRIVER_CID);
|
||||
#endif
|
||||
NS_DEFINE_NAMED_CID(NS_PARSER_CID);
|
||||
|
@ -84,7 +83,6 @@ NS_DEFINE_NAMED_CID(NS_SAXXMLREADER_CID);
|
|||
|
||||
static const mozilla::Module::CIDEntry kParserCIDs[] = {
|
||||
#if defined(NS_DEBUG)
|
||||
{ &kNS_LOGGING_SINK_CID, false, NULL, nsLoggingSinkConstructor },
|
||||
{ &kNS_EXPAT_DRIVER_CID, false, NULL, nsExpatDriverConstructor },
|
||||
#endif
|
||||
{ &kNS_PARSER_CID, false, NULL, nsParserConstructor },
|
||||
|
|
|
@ -43,14 +43,7 @@ VPATH = @srcdir@
|
|||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = \
|
||||
grabpage \
|
||||
html \
|
||||
mochitest \
|
||||
$(NULL)
|
||||
|
||||
# XXX This doesn't work in libxul builds.
|
||||
#DIRS += \
|
||||
# outsinks \
|
||||
# $(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = grabpage$(BIN_SUFFIX)
|
||||
|
||||
|
||||
CPPSRCS = grabpage.cpp
|
||||
|
||||
LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
@ -1,300 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
#include "nsIStreamListener.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
#include "nsNetCID.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIIOService.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsILocalFile.h"
|
||||
|
||||
#include "nsStringAPI.h"
|
||||
#include "nsCRT.h"
|
||||
#include "prprf.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include <windows.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef XP_UNIX
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef XP_OS2
|
||||
#include <os2.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
class StreamToFile : public nsIStreamListener {
|
||||
public:
|
||||
StreamToFile(FILE* fp);
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_IMETHOD GetBindInfo(nsIURI* aURL);
|
||||
NS_IMETHOD OnProgress(nsIURI* aURL, PRInt32 Progress, PRInt32 ProgressMax);
|
||||
NS_IMETHOD OnStatus(nsIURI* aURL, const nsString& aMsg);
|
||||
NS_IMETHOD OnStartRequest(nsIRequest* aRequest, nsISupports *);
|
||||
NS_IMETHOD OnDataAvailable(nsIRequest* aRequest, nsISupports *, nsIInputStream *pIStream, PRUint32 aOffset, PRUint32 aCount);
|
||||
NS_IMETHOD OnStopRequest(nsIRequest* aRequest, nsISupports *, PRUint32 status);
|
||||
|
||||
bool IsDone() const { return mDone; }
|
||||
bool HaveError() const { return mError; }
|
||||
|
||||
protected:
|
||||
virtual ~StreamToFile();
|
||||
|
||||
bool mDone;
|
||||
bool mError;
|
||||
FILE* mFile;
|
||||
};
|
||||
|
||||
StreamToFile::StreamToFile(FILE* fp)
|
||||
{
|
||||
mDone = false;
|
||||
mError = false;
|
||||
mFile = fp;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(StreamToFile,
|
||||
nsIStreamListener,
|
||||
nsIRequestObserver)
|
||||
|
||||
StreamToFile::~StreamToFile()
|
||||
{
|
||||
if (nsnull != mFile) {
|
||||
fclose(mFile);
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StreamToFile::GetBindInfo(nsIURI* aURL)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StreamToFile::OnProgress(nsIURI* aURL, PRInt32 Progress, PRInt32 ProgressMax)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StreamToFile::OnStatus(nsIURI* aURL, const nsString& aMsg)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StreamToFile::OnStartRequest(nsIRequest *aRequest, nsISupports *aSomething)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
StreamToFile::OnDataAvailable(
|
||||
nsIRequest* aRequest,
|
||||
nsISupports *,
|
||||
nsIInputStream *pIStream,
|
||||
PRUint32 aOffset,
|
||||
PRUint32 aCount)
|
||||
{
|
||||
PRUint32 len;
|
||||
do {
|
||||
char buffer[4000];
|
||||
nsresult err = pIStream->Read(buffer, sizeof(buffer), &len);
|
||||
if (NS_SUCCEEDED(err)) {
|
||||
if (nsnull != mFile) {
|
||||
fwrite(buffer, 1, len, mFile);
|
||||
}
|
||||
}
|
||||
} while (len > 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
StreamToFile::OnStopRequest(nsIRequest *aRequest, nsISupports *aSomething, PRUint32 status)
|
||||
{
|
||||
mDone = true;
|
||||
if (0 != status) {
|
||||
mError = true;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// This could turn into a handy utility someday...
|
||||
|
||||
class PageGrabber {
|
||||
public:
|
||||
PageGrabber();
|
||||
~PageGrabber();
|
||||
|
||||
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
|
||||
|
||||
nsresult Init(nsILocalFile *aDirectory);
|
||||
|
||||
nsresult Grab(const nsCString& aURL);
|
||||
|
||||
protected:
|
||||
nsILocalFile* NextFile(const char* aExtension);
|
||||
|
||||
nsILocalFile *mDirectory;
|
||||
PRInt32 mFileNum;
|
||||
};
|
||||
|
||||
PageGrabber::PageGrabber()
|
||||
{
|
||||
}
|
||||
|
||||
PageGrabber::~PageGrabber()
|
||||
{
|
||||
}
|
||||
|
||||
nsresult
|
||||
PageGrabber::Init(nsILocalFile *aDirectory)
|
||||
{
|
||||
mDirectory = aDirectory;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsILocalFile*
|
||||
PageGrabber::NextFile(const char* aExtension)
|
||||
{
|
||||
nsCAutoString name(NS_LITERAL_CSTRING("grab."));
|
||||
name += nsDependentCString(aExtension);
|
||||
nsIFile *cfile;
|
||||
mDirectory->Clone(&cfile);
|
||||
nsCOMPtr<nsILocalFile> file = do_QueryInterface(cfile);
|
||||
file->AppendRelativeNativePath(name);
|
||||
file->CreateUnique(nsIFile::NORMAL_FILE_TYPE, 0660);
|
||||
return file;
|
||||
}
|
||||
|
||||
nsresult
|
||||
PageGrabber::Grab(const nsCString& aURL)
|
||||
{
|
||||
nsresult rv;
|
||||
// Unix needs this
|
||||
nsCOMPtr<nsILocalFile> file = NextFile("html");
|
||||
if (!file) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
FILE* fp;
|
||||
rv = file->OpenANSIFileDesc("wb", &fp);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
printf("Copying ");
|
||||
fputs(aURL.get(), stdout);
|
||||
nsAutoString path;
|
||||
file->GetPath(path);
|
||||
NS_ConvertUTF16toUTF8 cpath(path);
|
||||
printf(" to %s\n", cpath.get());
|
||||
|
||||
// Create the URL object...
|
||||
nsCOMPtr<nsIURI> url;
|
||||
|
||||
nsCOMPtr<nsIIOService> ioService(do_GetService(NS_IOSERVICE_CONTRACTID, &rv));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = ioService->NewURI(aURL, nsnull, nsnull, getter_AddRefs(url));
|
||||
nsIChannel *channel = nsnull;
|
||||
rv = ioService->NewChannelFromURI(url, &channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// Start the URL load...
|
||||
StreamToFile* copier = new StreamToFile(fp);
|
||||
if (!copier)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(copier);
|
||||
|
||||
rv = channel->AsyncOpen(copier, nsnull);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_RELEASE(copier);
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Enter the message pump to allow the URL load to proceed.
|
||||
nsCOMPtr<nsIThread> thread = do_GetCurrentThread();
|
||||
while ( !copier->IsDone() ) {
|
||||
if (!NS_ProcessNextEvent(thread))
|
||||
break;
|
||||
}
|
||||
|
||||
rv = copier->HaveError() ? NS_ERROR_FAILURE : NS_OK;
|
||||
NS_RELEASE(copier);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
nsString url_address;
|
||||
|
||||
if (argc != 3) {
|
||||
fprintf(stderr, "Usage: grabpage url directory\n");
|
||||
return -1;
|
||||
}
|
||||
PageGrabber* grabber = new PageGrabber();
|
||||
if(grabber) {
|
||||
nsCOMPtr <nsILocalFile> directory(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID));;
|
||||
if (NS_FAILED(directory->InitWithNativePath(nsDependentCString(argv[2])))) {
|
||||
fprintf(stderr, "InitWithNativePath failed\n");
|
||||
return -2;
|
||||
}
|
||||
grabber->Init(directory);
|
||||
if (NS_OK != grabber->Grab(nsDependentCString(argv[1]))) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>font test</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<font face="Arial" size="1">
|
||||
This is just a font element: 01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font>
|
||||
<H1><font face="Arial" size="1">
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font></H1>
|
||||
<H2><font face="Arial" size="1">
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font></H2>
|
||||
<H3><font face="Arial" size="1">
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font></H3>
|
||||
<H4><font face="Arial" size="1">
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font></H4>
|
||||
<H5><font face="Arial" size="1">
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font></H5>
|
||||
<H6><font face="Arial" size="1">
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</font></H6>
|
||||
|
||||
01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
|
||||
|
||||
<font face="Arial" size="1">
|
||||
This is just a font element: 01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
<H1>01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</H1>
|
||||
<H2>01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</H2>
|
||||
<H3>01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</H3>
|
||||
<H4>01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</H4>
|
||||
<H5>01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</H5>
|
||||
<H6>01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</H6>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<body>
|
||||
<DL>
|
||||
<DT style="background-color:red">A line (unclosed)
|
||||
<DL>
|
||||
<DT>Should be indented</DT>
|
||||
</DL>
|
||||
</DL>
|
||||
|
||||
<DL>
|
||||
<DT>B line (closed)</dt>
|
||||
<DL>
|
||||
<DT>Should be indented</DT>
|
||||
</DL>
|
||||
</DL>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,14 +0,0 @@
|
|||
<html><head><title>Testcase for bug 102370</title></head>
|
||||
<body>
|
||||
<dl>
|
||||
<a name="a1">
|
||||
<dd style="background-color:red">First DD
|
||||
<dt>First DT
|
||||
|
||||
<a name="a2">
|
||||
<dt>Second DT
|
||||
<dd>Second DD
|
||||
</dl>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -1,17 +0,0 @@
|
|||
<html><head></head>
|
||||
<body>
|
||||
<table>
|
||||
<tbody><tr>
|
||||
<td colspan="2">
|
||||
<br>
|
||||
<form>
|
||||
sometexthere<textarea><TR></tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</textarea><table border="0">
|
||||
</table></form></td></tr></tbody></table></body></html>
|
|
@ -1,8 +0,0 @@
|
|||
<html><body>
|
||||
<table>
|
||||
<p><h3>Please Enter your Homesite Login, E-mail and Password to delete</h3></p>
|
||||
<form method="POST">
|
||||
<input type=submit>
|
||||
</form>
|
||||
</table>
|
||||
</body></html>
|
|
@ -1,12 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<table border="1" width="100px">
|
||||
<tr>
|
||||
<p><caption>caption
|
||||
<td>
|
||||
cell
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
|
||||
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<TITLE>Document Title</TITLE>
|
||||
</HEAD>
|
||||
|
||||
<script>
|
||||
var value = "should ";
|
||||
</script>
|
||||
<!-- Insert HTML here -->
|
||||
<iframe>
|
||||
<script language="javascript"> value += "not ";</script>
|
||||
</iframe>
|
||||
<script>
|
||||
value += "see this content";
|
||||
document.write(value);
|
||||
</script>
|
||||
|
||||
</HTML>
|
|
@ -1,18 +0,0 @@
|
|||
<html>
|
||||
<head><title> < </title></head>
|
||||
<body>
|
||||
<FORM>
|
||||
<TEXTAREA ROWS=8 COLS=50><
|
||||
<table width="100%"; >
|
||||
bgcolor= #FFFFFF ;
|
||||
<tr> <
|
||||
<td> a </td>
|
||||
</tr>
|
||||
</table>
|
||||
</TEXTAREA>
|
||||
</FORM>
|
||||
<script>
|
||||
err()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,11 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
|
||||
<textarea onclick="dump(this.childNodes.length);">
|
||||
><table><tr><td>hellothere</td></tr></table>
|
||||
Click on the textarea to see it's number of childNodes...
|
||||
(Should be "1" for the child text)
|
||||
</textarea>
|
||||
fdfd
|
||||
</body>
|
||||
</html>
|
|
@ -1,14 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>parserspace.html</title></head>
|
||||
|
||||
<body>
|
||||
The head and body tags appear side by side in this test: <br></HEAD><BODY><br> so you <b>should not</b> see an [object Text] between the ending head and beginning body tags.
|
||||
<br><br>
|
||||
<script type="text/javascript">
|
||||
|
||||
for(i=0; i<3; i++){
|
||||
var oWhat=document.documentElement.childNodes[i];
|
||||
document.write(oWhat +"<BR>");
|
||||
}
|
||||
|
||||
</script>
|
||||
</body></html>
|
|
@ -1,24 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>MSN Hotmail - Compose</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<table cellpadding=0 cellspacing=0 bgcolor="#93BEE2" width=100% style="border-left:4px solid #93BEE2;">
|
||||
<form name="hiddentext"><input type="hidden" name="sigtext" value=""></form>
|
||||
<form name="composeform" method="POST" action="http://lw9fd.law9.hotmail.msn.com/cgi-bin/premail">
|
||||
|
||||
</table>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
|
||||
<SCRIPT>
|
||||
document.write("This is an HTMLFormElement: " + document.composeform);
|
||||
</SCRIPT>
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
<iframe src="184029_iframe.html">
|
||||
</iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<SCRIPT>
|
||||
document.write('\<script\>');
|
||||
document.write(' document.write(\'\<iframe\>\');');
|
||||
document.write(' document.write(\'\<script\>\');');
|
||||
document.write(' document.write(\'\</scr\');');
|
||||
document.write(' document.write(\'ipt\>\');');
|
||||
document.write(' document.write(\'\</iframe\>\');');
|
||||
document.write('<\/script>');
|
||||
</SCRIPT>
|
|
@ -1,5 +0,0 @@
|
|||
<html>
|
||||
<script language=Javascript>
|
||||
document.write("outside of body");
|
||||
</script>
|
||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<form>
|
||||
<table bgcolor=red>
|
||||
<input>
|
||||
<tr><td><input></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -1,17 +0,0 @@
|
|||
<html><head></head>
|
||||
<body><form>
|
||||
|
||||
<table>
|
||||
<tbody><tr><td>
|
||||
test
|
||||
<table><tbody><tr>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</td></tr>
|
||||
</tbody></table>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
|
@ -1,8 +0,0 @@
|
|||
<html><head></head>
|
||||
<body><ul>
|
||||
<li>A
|
||||
</li><li>B
|
||||
</li><li>C</li>
|
||||
|
||||
</ul>
|
||||
</body></html>
|
|
@ -1,8 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<form>
|
||||
<input type=text><p>
|
||||
<input type=submit>
|
||||
</form>This text block should be on the next line
|
||||
</body>
|
||||
</html>
|
|
@ -1,11 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<h5>H5_1
|
||||
<li>LI_1
|
||||
<h5>H5_2
|
||||
<li>LI_2
|
||||
<h5>H5_3
|
||||
<li>LI_3
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<HTML><HEAD>
|
||||
<style type="text/css">
|
||||
|
||||
span:before { content: "<" attr(class) ">" }
|
||||
span:after { content: "</" attr(class) ">" }
|
||||
|
||||
span.a {
|
||||
font-size: 130%;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
span.z {
|
||||
padding-left: 50px;
|
||||
display: block;
|
||||
color: green;
|
||||
}
|
||||
|
||||
</style>
|
||||
</HEAD>
|
||||
|
||||
<BODY><FONT FACE="Arial"><!-- Deleting this font tag fixes the bug -->
|
||||
<P>testcase 4</P><!-- Deleting this paragraph or adding a space
|
||||
before or after this comment fixes the bug -->
|
||||
|
||||
<SPAN CLASS="z">[span class z]</SPAN><br>
|
||||
<P><SPAN CLASS="a">[span class a]</SPAN></P>
|
||||
|
||||
<SPAN CLASS="z">[span class z]</SPAN><br>
|
||||
<P><SPAN CLASS="a">[span class a]</SPAN></P>
|
||||
|
||||
<SPAN CLASS="z">[span class z]</SPAN><br>
|
||||
<P><SPAN CLASS="a">[span class a]</SPAN></P>
|
||||
|
||||
<SPAN CLASS="z">[span class z]</SPAN>
|
||||
<P><SPAN CLASS="a">[span class a]</SPAN></P>
|
||||
|
||||
</font></body></html>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
<TABLE width=500>
|
||||
<TR>
|
||||
<TD width=100 bgcolor=yellow>
|
||||
<B>
|
||||
<FORM>
|
||||
<NOBR>
|
||||
<IMG SRC="http://bugzilla.mozilla.org/ant.jpg" width=100 HEIGHT=30>
|
||||
</NOBR>
|
||||
</FORM>
|
||||
UNSER ANGEBOT
|
||||
</TD>
|
||||
<TD width=400>
|
||||
Foo
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,4 +0,0 @@
|
|||
<html><head><title>Testcase for bug 68674</title></head><body>
|
||||
<A HREF="http://www.mozilla.org">www.<STRONG>mozilla.org</A></STRONG>
|
||||
STRONG - This text should not be part of the link <BR>
|
||||
</body></html>
|
|
@ -1,2 +0,0 @@
|
|||
<A href=foo.html><B>foo<A href=bar.html>bar</A></B></A>
|
||||
<DL><DD><LI>one<DD><LI>two
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
<HTML>
|
||||
|
||||
<TABLE BORDER="1">
|
||||
<tr>
|
||||
<td>
|
||||
<b>
|
||||
Test
|
||||
</td>
|
||||
</tr>
|
||||
<TD>
|
||||
Test
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<html><head></head>
|
||||
<body bgcolor="#ffffff" text="#000000">
|
||||
|
||||
|
||||
|
||||
<font face="geneva, arial, helvetica">
|
||||
<font size="-1">
|
||||
|
||||
This text, in the body, is in "Font Face A"
|
||||
|
||||
<table>
|
||||
<tbody><tr>
|
||||
<td align="center">
|
||||
<font face="arial, helvetica" color="#404040" size="5">
|
||||
This text, in a table, is in "Font Face B". Immediately following
|
||||
this text is a close font tag, and another erroneously placed close font
|
||||
tag. </font>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table> This text, back in the body, should be in Font Face A,
|
||||
but is not because Mozilla incorrectly heeded the second close-font tag in
|
||||
the above table. </font>
|
||||
|
||||
</font></body></html>
|
|
@ -1,17 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<HTML lang="en">
|
||||
<HEAD>
|
||||
<base href=http://www.bath.ac.uk/%7Epy8ieh/internet/eviltests/cascade/>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<META http-equiv="Content-Style-Type" content="text/css">
|
||||
<LINK type="text/css" href="c.css" rel=stylesheet>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
|
||||
<OL>
|
||||
<LI class=a>Should be green - Linked with <code>LINK</code> HTTP Header.</LI>
|
||||
<LI class=c>Should be green - Linked with <code>LINK</code></LI>
|
||||
</OL>
|
||||
</BODY></HTML>
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<html><head></head>
|
||||
<body>
|
||||
<br>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="540">
|
||||
<tbody><tr>
|
||||
<td>***</td></tr><tr><td>***</td></tr>
|
||||
</tbody></table>
|
||||
</body></html>
|
|
@ -1,7 +0,0 @@
|
|||
<table border=1>
|
||||
<tr><td bgcolor="red>1</td>
|
||||
</tr>
|
||||
bad text
|
||||
<tr><td bgcolor=blue>2</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -1,15 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
document.write('<style>')
|
||||
|
||||
document.write(".menured { color: red; } \n")
|
||||
document.write('</style>')
|
||||
</script>
|
||||
|
||||
<p class="menured">This should be the only text visible and it should be red</p>
|
||||
|
||||
</body></html>
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<p>
|
||||
<font face="arial, helvetica" color=red>
|
||||
<table border="1">
|
||||
<tr><td><font size=+1><a href=foo.html>SHOULD BE TIMES ROMAN</a></font></td></tr>
|
||||
</table>
|
||||
<p>
|
||||
<font size='+1'>
|
||||
<b>
|
||||
<a href=foo.html>SHOULD BE HELVETICA
|
||||
</a>
|
||||
</b>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,259 +0,0 @@
|
|||
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Rob Kaper's Capsi | Beyond Paradise</title>
|
||||
<meta name="author" content="Rob Kaper">
|
||||
<meta name="copyright" content="© Copyright 1995-2000 Rob Kaper.">
|
||||
<meta name="capsi_layout" content="HTML4/CSS2 incompatible: Netscape, Explorer (Mozilla/4.72 (Macintosh; U; PPC))">
|
||||
<meta name="keywords" content="capsi,rob,kaper,cap,pepsi,capricorn,rjkap,beyond,paradise,home,page,homepage,home-page,web,site,website,web-site,personal,code,chat,fun,entertainment">
|
||||
<meta name="description" content="Rob Kaper's Capsi: a splarkling website including personal items (a bio, poetry and a resume), fun stuff (a postcard server, the Capsi chat) and serious stuff (Linux code).">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
a
|
||||
{
|
||||
text-decoration: none
|
||||
}
|
||||
a:hover
|
||||
{
|
||||
text-decoration: underline
|
||||
}
|
||||
h4
|
||||
{
|
||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||
font-size: 12pt;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
list-style-type: square;
|
||||
list-style-image: none
|
||||
}
|
||||
b
|
||||
{
|
||||
font-weight: bold
|
||||
}
|
||||
td
|
||||
{
|
||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
list-style-type: square;
|
||||
list-style-image: none
|
||||
}
|
||||
small
|
||||
{
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
list-style-type: square;
|
||||
list-style-image: none
|
||||
}
|
||||
pre
|
||||
{
|
||||
font-family: Verdana, Fixed, Courier, sans-serif;
|
||||
font-size: 10pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
list-style-type: square;
|
||||
list-style-image: none
|
||||
}
|
||||
tt
|
||||
{
|
||||
font-family: Fixed, Courier, monospace;
|
||||
font-size: 12pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
list-style-type: square;
|
||||
list-style-image: none
|
||||
}
|
||||
#title
|
||||
{
|
||||
position: absolute;
|
||||
|
||||
width: auto;
|
||||
height: 20px;
|
||||
left: 170px;
|
||||
right: 10px;
|
||||
top: 87px;
|
||||
bottom: auto;
|
||||
|
||||
border: solid 1px #ffffff;
|
||||
background-color: #e1e0ff;
|
||||
background-image: url("/img/bg-layer.jpg");
|
||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 12pt;
|
||||
}
|
||||
#header
|
||||
{
|
||||
position: absolute;
|
||||
|
||||
width: auto;
|
||||
height: 68px;
|
||||
left: 170px;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
bottom: auto;
|
||||
|
||||
text-align: center;
|
||||
margin-top: auto;
|
||||
border: solid 1px white;
|
||||
background-color: #e1e0ff;
|
||||
background-image: url("/img/bg-layer.jpg");
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
padding: 2px;
|
||||
}
|
||||
#footer
|
||||
{
|
||||
position: fixed;
|
||||
|
||||
width: auto;
|
||||
height: 15px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
|
||||
text-align: right;
|
||||
margin-top: auto;
|
||||
background-color: #e1e0ff;
|
||||
background-image: url("/img/bg-blue.jpg");
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
padding: 0px;
|
||||
}
|
||||
#ad
|
||||
{
|
||||
position: absolute;
|
||||
|
||||
width: auto;
|
||||
height: 60px;
|
||||
left: 170px;
|
||||
right: 10px;
|
||||
top: auto;
|
||||
bottom: 15px;
|
||||
|
||||
text-align: center;
|
||||
margin-top: auto;
|
||||
border: solid 1px white;
|
||||
background-color: #e1e0ff;
|
||||
background-image: url("/img/bg-layer.jpg");
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
#sidebar
|
||||
{
|
||||
position: fixed;
|
||||
|
||||
width: 150px;
|
||||
height: auto;
|
||||
left: 10px;
|
||||
right: 160px;
|
||||
top: 10px;
|
||||
bottom: 15px;
|
||||
|
||||
background-color: #e1e0ff;
|
||||
background-image: url("/img/bg-horizontal.jpg");
|
||||
border: solid 1px white;
|
||||
|
||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
}
|
||||
#main
|
||||
{
|
||||
position: absolute;
|
||||
|
||||
width: auto;
|
||||
height: auto;
|
||||
|
||||
left: 170px;
|
||||
right: 10px;
|
||||
top: 112px;
|
||||
bottom: 80px;
|
||||
|
||||
background-color: #ffffff;
|
||||
|
||||
border: solid 1px #ccccff;
|
||||
|
||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||
font-size: 10pt;
|
||||
|
||||
list-style-image: url("/img/box-tiny.jpg");
|
||||
|
||||
padding: 5px;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
<body bgcolor="#ffffff" background="/img/bg-blue.jpg" text="#000000" link="#0000aa" alink="#000000" vlink="#3333ff">
|
||||
<div id="header">
|
||||
<a href="/personal.html"><img src="/img/menu/personal.jpg" width=69 height=68 alt="[Personal]" border=0></a>
|
||||
<a href="/code.html"><img src="/img/menu/code.jpg" width=69 height=68 alt="[Code]" border=0></a>
|
||||
<a href="/chat.html"><img src="/img/menu/chat.jpg" width=69 height=68 alt="[Chat]" border=0></a>
|
||||
<a href="/starcrush.html"><img src="/img/menu/starcrush.jpg" width=145 height=68 alt="[Starcrush]" border=0></a>
|
||||
</div>
|
||||
<div id="title"> <a href="./">Capsi</a> | Beyond Paradise </div>
|
||||
<div id="sidebar" style="position: absolute">
|
||||
<a href="./"><img src="/img/capsi-blue.jpg" width=150 height=60 alt="[Capsi]" border=0></a>
|
||||
<center><small>
|
||||
<a href="/">Home</a>
|
||||
<br><a href="/faq.html">FAQ</a>
|
||||
+ <a href="/gbook-read.html">Guestbook</a>
|
||||
+ <a href="/mail.html">Mail</a>
|
||||
<br><a href="/postcards.html">Postcards</a>
|
||||
+ <a href="/vortex.html">Vortex</a>
|
||||
<br><a href="/user-login.html?r=/index.html">Login</a>
|
||||
</small>
|
||||
<p><b>Sections</b>
|
||||
<br><a href="/personal.html">Personal</a>
|
||||
<br><a href="/code.html">Code</a>
|
||||
<br><a href="/chat.html">CapsiChat</a>
|
||||
<br><a href="/starcrush.html">Starcrush</a>
|
||||
</center>
|
||||
</div>
|
||||
<div id="main">
|
||||
Welcome to Capsi! This website is divided into the following sections:
|
||||
<br><br>
|
||||
<center><table border=0 cellpadding=1 cellspacing=0 bgcolor="#ccccff"><tr><td>
|
||||
<table border=0 cellpadding=1 cellspacing=0 bgcolor="#ffffff"><tr><td>
|
||||
<table border=0 cellpadding=2 cellspacing=1 bgcolor="#e1e0ff"><tr>
|
||||
<td><b>Section</b></td>
|
||||
<td><b>Description</b></td>
|
||||
</tr><tr>
|
||||
<td><img src="img/box-tiny.jpg" width=12 height=12 alt=""> <a href="personal.html">Personal</a></td>
|
||||
<td><small>Aptly named because it's all about me</small></td>
|
||||
</tr><tr>
|
||||
<td><img src="img/box-tiny.jpg" width=12 height=12 alt=""> <a href="code.html">Code</a></td>
|
||||
<td><small>Various programs and utilities I have written</small></td>
|
||||
</tr><tr>
|
||||
<td><img src="img/box-tiny.jpg" width=12 height=12 alt=""> <a href="chat.html">CapsiChat</a></td>
|
||||
<td><small>My haven, or chat-box</small></td>
|
||||
</tr><tr>
|
||||
<td><img src="img/box-tiny.jpg" width=12 height=12 alt=""> <a href="starcrush.html">Starcrush</a></td>
|
||||
<td><small>Chicks and babes, lads and dudes.</small></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</td></tr></table></center>
|
||||
<br><br>
|
||||
<center><table border=0 cellpadding=1 cellspacing=0 bgcolor="#ccccff"><tr><td>
|
||||
<table border=0 cellpadding=1 cellspacing=0 bgcolor="#ffffff"><tr><td>
|
||||
<table border=0 cellpadding=2 cellspacing=1 bgcolor="#e1e0ff"><tr>
|
||||
<td valign=top><small>2000.05.19</small></td>
|
||||
<td>
|
||||
<b>Mission Back to Dot-Com</b>
|
||||
<p>
|
||||
I have made up my mind: I will drop the capsi.cx domain! Everything will
|
||||
move back to capsi.com and the Capsi services in Maryland will be hosted
|
||||
under the usa.capsi.com subdomain. Until the capsi.cx domain expires in
|
||||
February 2001 all requests will be forwarded to the proper capsi.com
|
||||
locations. I expect to make the big move in June or July.
|
||||
</td>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
</td></tr></table></center>
|
||||
<p><hr><center><a target="_top" href="http://ads.capsi.cx/redirect?host=hs0002586&b=98&v=0"><small>Please visit Capsi's sponsor</small><br><img src="http://ads.capsi.cx/cycle?host=hs0002586&b=98&noscript=1" width=468 height=60 alt="[Please visit Capsi's sponsor]" border=0></a></center>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||
<html><head></head>
|
||||
<body>
|
||||
|
||||
<center style="color: green;">
|
||||
This should be on all one <!-- new date --> line... but it isn't
|
||||
</center>
|
||||
<table style="background: yellow none repeat scroll 0%;">
|
||||
</table>
|
||||
|
||||
</body></html>
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<style> P { color:red }; </style>
|
||||
</head>
|
||||
<body>
|
||||
<P>
|
||||
Inside P but before TABLE
|
||||
<table width="155" border="3"align="right">
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
</tr>
|
||||
</table>
|
||||
After TABLE but inside P
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>BUTTON in SPAN in SPAN / SPAN in BUTTON in SPAN</title></head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>BUTTON in SPAN in SPAN</p>
|
||||
<span>
|
||||
<span>
|
||||
<button>
|
||||
myButton
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
<p>Text after button</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<p>SPAN in BUTTON in SPAN</p>
|
||||
<span>
|
||||
<button>
|
||||
<span>
|
||||
myButton
|
||||
</span>
|
||||
</button>
|
||||
</span>
|
||||
<p>Text after button</p>
|
||||
|
||||
</body></html>
|
|
@ -1,18 +0,0 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
<p>
|
||||
<form>
|
||||
<table>
|
||||
<strong>Your options on how to apply for the Job are:</strong><br>
|
||||
<li>Fax your resume/statement of qualifications and cover letter
|
||||
</table>
|
||||
</form>
|
||||
<form>
|
||||
<select><option>1<option>2</select>
|
||||
<table>
|
||||
<strong>Your options on how to apply for the Job are:</strong><br>
|
||||
<li>Fax your resume/statement of qualifications and cover letter
|
||||
</table>
|
||||
</form>
|
||||
</BODY>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
<FORM METHOD=GET>
|
||||
<INPUT TYPE=hidden NAME=blah VALUE="a
|
||||
b">
|
||||
<INPUT TYPE=submit>
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,32 +0,0 @@
|
|||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Color Inheritance Test</TITLE>
|
||||
<STYLE type="text/css">
|
||||
|
||||
BODY {background-color: #FFFFFF; color: #000000}
|
||||
|
||||
.type-expression, .type-name {font-family: "Times New Roman", Times, serif; color: yellow}
|
||||
.type-name {font-variant: small-caps}
|
||||
.field-name {font-family: Arial, Helvetica, sans-serif; color: #FF0000}
|
||||
|
||||
A * {text-decoration: inherit}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
|
||||
<BODY>
|
||||
<P>P
|
||||
<SPAN class=type-expression>Span O
|
||||
<A href="#Link1">A
|
||||
<SPAN class=type-name>Span I</SPAN>
|
||||
</A>
|
||||
</SPAN>
|
||||
</P>
|
||||
<P>P
|
||||
<A href="#Link1">A
|
||||
<SPAN class=type-name>Span</SPAN>
|
||||
</A>
|
||||
</P>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,13 +0,0 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><title>Mozilla Tests: An XHTML Document</title>
|
||||
|
||||
<style type="text/css">
|
||||
.xhtml { display: none; }
|
||||
strong { color: red; }
|
||||
</style></head>
|
||||
|
||||
<body>
|
||||
<h1>An XHTML Document</h1>
|
||||
<p>This document is being parsed as <span class="xhtml">X</span>HTML. </p>
|
||||
<p> <strong> This should not be emphasised text. </strong></p>
|
||||
<strong> </strong><p><strong> This should be a second paragraph. </strong></p>
|
||||
<strong> </strong></body></html>
|
|
@ -1,28 +0,0 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<STYLE>
|
||||
.abs {
|
||||
position: absolute;
|
||||
}
|
||||
</STYLE>
|
||||
<SCRIPT>
|
||||
function showWidth(strName) {
|
||||
dump(getComputedStyle(document.getElementById(strName),
|
||||
null).getPropertyValue('width'));
|
||||
}
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV CLASS="abs" ID="foo">
|
||||
Single <DIV>
|
||||
</DIV><BR><BR>
|
||||
<INPUT TYPE="Button" VALUE="Test" onClick="showWidth('foo');">
|
||||
<BR>
|
||||
<DIV CLASS="abs">
|
||||
<DIV CLASS="abs" ID="bar">
|
||||
Nested <DIV>s
|
||||
</DIV>
|
||||
</DIV><BR><BR>
|
||||
<INPUT TYPE="Button" VALUE="Test" onClick="showWidth('bar');">
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,7 +0,0 @@
|
|||
<html><head>
|
||||
<style>
|
||||
p { font-size: 24px}
|
||||
</style></head>
|
||||
<body>
|
||||
<p>text text text text</p>
|
||||
</body></html>
|
|
@ -1,13 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Mozilla: Stylesheet linking without "type" attribute</title>
|
||||
<style type="text/css">
|
||||
p { color: red; }
|
||||
</style>
|
||||
<link rel="stylesheet" href="http://bugzilla.mozilla.org/showattachment.cgi?attach_id=14944">
|
||||
</head>
|
||||
<body>
|
||||
<p class="test">I should be green.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1,37 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Child Selectors Test</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
DIV P { background: red; color: yellow }
|
||||
LI P { background: green; color: white; }
|
||||
|
||||
DIV P:after { content: ' [[ FAILED ]]'; }
|
||||
LI P:after { content: ' [[ PASSED ]]'; }
|
||||
|
||||
* { padding: 4px; border: 1px solid lime; margin: 4px; }
|
||||
|
||||
</style></head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>Below this box, every box should be within another. In other
|
||||
words, the only SIBLINGS in this document should be this box and the
|
||||
immediate next one. In particular, LI should allow the inner DIV to
|
||||
nest within it.</p>
|
||||
|
||||
<div>
|
||||
DIV
|
||||
<ol>
|
||||
<li>
|
||||
LI
|
||||
<div>
|
||||
DIV
|
||||
<p>
|
||||
P
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</body></html>
|
|
@ -1,37 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function changePage() {
|
||||
dump("Change Page!\n");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Start of Body Content
|
||||
<script>
|
||||
document.writeln('<FORM name="SelectMenu" method=post action="javascript:changePage();">');
|
||||
with (document){
|
||||
writeln('<FORM name="SelectMenu" method=post action="javascript:changePage();">');
|
||||
writeln('script form content');
|
||||
}
|
||||
</script>
|
||||
|
||||
<noscript>
|
||||
<FORM name="SelectMenu" method="post">
|
||||
noscript form content goes here
|
||||
<table border=1>
|
||||
<tr><td>TABLE</td></tr>
|
||||
illegal table content
|
||||
</table>
|
||||
|
||||
</FORM>
|
||||
</noscript>
|
||||
|
||||
<center>
|
||||
<INPUT TYPE="IMAGE" WIDTH="50" HEIGTH="25" SRC="../Images/aim.gif" ALT="GO!" BORDER="0" valign="top">
|
||||
</center>
|
||||
</FORM>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
font { background-color:yellow }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<font color=red>italized text<x> unknown
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td>
|
||||
</font>cell 1
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<HTML>
|
||||
<BODY bgColor=#000099>
|
||||
<TABLE border=1>
|
||||
<TR>
|
||||
<TD bgcolor="red">
|
||||
Cell-1
|
||||
</TD>
|
||||
</TR>
|
||||
<TR vAlign=top>
|
||||
<TD bgColor="blue">
|
||||
<FORM>
|
||||
<TABLE border=1>
|
||||
<TR vAlign=top>
|
||||
<TD bgcolor="green">
|
||||
Cell-2
|
||||
</TD>
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,22 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
font { background-color:yellow }
|
||||
div { color:green }
|
||||
x { background-color:blue; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<font face="helvetica">
|
||||
red<x> unknown
|
||||
<div>div a
|
||||
</font>
|
||||
div b
|
||||
</div>
|
||||
normal text
|
||||
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Computer Market Online</title>
|
||||
<BASE HREF="http://www.computermarket.com.au/">\
|
||||
</head>
|
||||
<body bgcolor="#ffffff">
|
||||
<table>
|
||||
<tr><td><a href='prodDetail.asp?id=6007&catid=241'>This shows</a></td></tr>
|
||||
<tr><td><a href='prodDetail.asp?id=6007&catid=241'"bgcolor=>This does not show</a></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>x
|
|
@ -1,12 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
'A'<br>
|
||||
'A'<br>
|
||||
'b'<br>
|
||||
'c'<br>
|
||||
'd'<br>
|
||||
'e'<br>
|
||||
'f'<br>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Bug</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
BUG:<BR>
|
||||
|
||||
<SPAN style="color:blue"><SPAN>
|
||||
<DIV style="color:red"><DIV>
|
||||
<SPAN style="color:green"><SPAN>
|
||||
</SPAN></SPAN>
|
||||
</DIV></DIV>
|
||||
</SPAN></SPAN>
|
||||
|
||||
<HR>
|
||||
|
||||
NO BUG:<BR>
|
||||
|
||||
<SPAN style="color:blue"><SPAN>
|
||||
<DIV style="color:red"><DIV>
|
||||
<B style="color:green"><B>
|
||||
</B></B>
|
||||
</DIV></DIV>
|
||||
</SPAN></SPAN>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Bug: 65467</title>
|
||||
<style type="text/css">
|
||||
.one { border: solid 1px navy; padding: 4px; margin: 4px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<pre class="one">
|
||||
<dt> The center tag's border "should" go around this text. </dt>
|
||||
</center>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<p>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
First line
|
||||
</p>
|
||||
Second line
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +0,0 @@
|
|||
<html><body>
|
||||
<!--> Did you know that <b>your Browser is <em>buggy</em></b>: it can't parse
|
||||
comments correctly. -->
|
||||
</body></html>
|
|
@ -1,33 +0,0 @@
|
|||
<html>
|
||||
<body bgcolor="#ffffff">
|
||||
|
||||
Row,Col
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td bgcolor=purple>
|
||||
1,1
|
||||
</td>
|
||||
<td bgcolor=blue>
|
||||
1,2
|
||||
<font face=arial, helvetica, sans-serif size="2">
|
||||
<left>
|
||||
<table border="2">
|
||||
<tr>
|
||||
<td bgcolor=green>
|
||||
1,1,1
|
||||
</td>
|
||||
<td bgcolor=yellow>
|
||||
1,1,2</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor=red>
|
||||
1,2,2
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>testcase</title>
|
||||
</head>
|
||||
<body style="font-size:30pt">
|
||||
<a href=foo?bar=baz&lang=foo&test1=test2>All the stuff after
|
||||
&lang got munched.
|
||||
</body>
|
||||
</html>
|
|
@ -1,12 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<font size=+2>
|
||||
size +2
|
||||
<P>
|
||||
PPPP
|
||||
<H6>
|
||||
H6<font size=2>blah</font>
|
||||
</H6>
|
||||
size +2
|
||||
</body>
|
||||
</html>
|
|
@ -1,3 +0,0 @@
|
|||
<html><head></head>
|
||||
<body><p><b><font color="red">bold red</font></b></p> neither bold nor red
|
||||
</body></html>
|
|
@ -1,15 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<base href="http://www.coldplay.com">
|
||||
<title>coldplay</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
|
||||
<frameset rows="110,438*" cols="*" frameborder="NO" border="0" framespacing="0">
|
||||
<frame src="forum_top.htm" scrolling="NO">
|
||||
<frame src="http://coldplay.hypnosismedia.co.uk/cgi-bin/Ultimate.cgi">
|
||||
</frameset>
|
||||
<noframes><body bgcolor="#FFFFFF">
|
||||
|
||||
</body></noframes>
|
||||
</html>
|
|
@ -1,117 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Testcase that cause hangup</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<font face="Arial, Verdana, Geneva, MS Sans Serif, Helvetica" size=3>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<font face="Verdana, Arial" size=2>
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
|
||||
<ul>
|
||||
</font>
|
||||
</ul>
|
||||
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
|
||||
<ul>
|
||||
</font>
|
||||
</ul>
|
||||
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
|
||||
<ul>
|
||||
</font>
|
||||
</ul>
|
||||
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
|
||||
<ul>
|
||||
</font>
|
||||
</ul>
|
||||
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
|
||||
<ul>
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
<a href=arlz_player.html>Ar1z Video Player</a><br>
|
||||
<a href=bs_play.html>BS Player</a> <img src=new_sm.gif alt="" border=0><br>
|
||||
<a href=cinematograph.html>Cinematograph</a> - also plays DVDs, VCDs and Quicktime<br>
|
||||
<a href=dzmovie_play.html>DzMovies Multimedia Player</a><br>
|
||||
<a href=fmv.html>FMV Player</a><br>
|
||||
<a href=gdivx_play.html>GDivX Player</a> <img src=new_sm.gif alt="" border=0><br>
|
||||
<a href=home_player.html>Home Player</a><br>
|
||||
<a href=mediabox.html>MediaBOX</a><br>
|
||||
<a href=media_station.html>Mediastation</a><br>
|
||||
<a href=microdvd.html>MicroDVD</a><br>
|
||||
<a href=mini_player.html>Mini Player</a><br>
|
||||
<a href=multiavi.html>MultiAVI Player</a><br>
|
||||
<a href=playa.html>The Playa</a> - "official" (sort-of) DivX player<br>
|
||||
<a href=powerdivx.html>PowerDivX NextGen</a><br>
|
||||
<a href=radlight_player.html>RadLight Player</a><br>
|
||||
<a href=divxmpeg4_play.html>REDZ's DivX (MPEG-4) Player</a><br>
|
||||
<a href=revelatex_player.html>Revelatex Media Player</a><br>
|
||||
<a href=ripnot.html>Ripnot DivX Player</a><br>
|
||||
<a href=sasami_player.html>Sasami Player</a><br>
|
||||
<a href=showdivx.html>ShowDivX</a><br>
|
||||
<a href=twins_player.html>Twins Video Player</a><br>
|
||||
<a href="ultradivx.html">UltraDivX</a> <img src=new_sm.gif alt="" border=0><br>
|
||||
<a href=vidamp.html>VidAmp</a> - a WinAmp movie playback plugin<br>
|
||||
<a href="vidomi.html">Vidomi</a> - can make and playback DivX movie files <img src=new_sm.gif alt="" border=0><br>
|
||||
<a href=http://www.digital-digest.com/dvd/downloads/zoom_player.html>Zoom Player</a><br><br>
|
||||
<a href=mac_divx.html>DivX for the Apple Mac</a><br>
|
||||
<a href=be_divx.html>DivX for BeOS</a><br>
|
||||
<a href=linux_divx.html>DivX for Linux</a><br><br>
|
||||
<a href=http://www.digital-digest.com/dvd/downloads/playback.html>DVD Players</a> - Many DVD players can also playback DivX movies
|
||||
</ul>
|
||||
|
||||
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1">
|
||||
<font face="Verdana, Arial, Geneva, MS Sans Serif, Helvetica" size="1"><u>On this site : </u>
|
||||
|
||||
<ul>
|
||||
</font>
|
||||
</ul>
|
||||
</font>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,8 +0,0 @@
|
|||
<html><head>
|
||||
<title>PG&E &E: &e. &e; &&e &&e;</title>
|
||||
<!-- will render as 'PG . & & -->
|
||||
</head><body>
|
||||
<p>Title should look like this:</p>
|
||||
<p>PG&E &E: &e. &e; &&e &&e;</p>
|
||||
<!-- will render as 'PG&E &E: &e. &e; &&e &&e;' -->
|
||||
</body>
|
|
@ -1,12 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>IMG without attribute</title>
|
||||
</head>
|
||||
<frameset>
|
||||
<frame name="TESTTHIS">
|
||||
<frame name="SCODA">
|
||||
<noframes>
|
||||
<img src="mozilla.gif">
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
|
@ -1,8 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<a href="foo.html">
|
||||
<iframe>
|
||||
<a href="bar.html">
|
||||
</iframe>foo
|
||||
</a>
|
||||
</body>
|
|
@ -1,16 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<html><head><title>Debian Planet</title>
|
||||
<meta http-equiv=Content-Type content="text/html; charset=">
|
||||
<meta content="Debian Planet" name=AUTHOR>
|
||||
<meta content="Copyright (c) 2001 by Debian Planet" name=COPYRIGHT>
|
||||
<meta content="Serving FREE beer to the users of the FREE Linux of a FREE world"
|
||||
name=DESCRIPTION>
|
||||
<meta content="MSHTML 5.50.4611.1300" name=GENERATOR>
|
||||
|
||||
<script language=javascript src="http://bugzilla.mozilla.org/showattachment.cgi?attach_id=41009"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script language=javascript>foo();</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,15 +0,0 @@
|
|||
<!DOCTYPE>
|
||||
<HTML>
|
||||
<BODY bgcolor=pink>
|
||||
<table>⟨
|
||||
<tr><!-- ⟩ --><harish></harish>
|
||||
<td> &
|
||||
<div>div<p><xmp>p<I>I</div></I></xmp>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<object><i>italic</object>
|
||||
This text doesn't show up.!
|
||||
|
||||
</BODY></HTML>
|
|
@ -1,6 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
This should be visible.
|
||||
<p>
|
||||
This is a new paragraph.
|
||||
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<!-- Tag Soup -->
|
||||
<html>
|
||||
<head>
|
||||
<title> Bugscape Bug 5040 </title>
|
||||
<style type="text/css">
|
||||
:table-cell { border: red dotted 10px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr>
|
||||
<td bgcolor=pink>
|
||||
<form>
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td bgcolor=blue>
|
||||
<table>
|
||||
<span> CONTENT PROMOTED ABOVE INNER TABLE </span>
|
||||
<tr>
|
||||
<td bgcolor=green> ROW 1 CELL 1 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> ROW 2 CELL 1 </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
|
@ -1,24 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
font {
|
||||
font-size: 20pt;
|
||||
color: yellow;
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<font face="courier">
|
||||
|
||||
this text is above a table.
|
||||
|
||||
<TABLE border=1><TR><TD>
|
||||
this text is inside a table.
|
||||
</td></tr></table>
|
||||
|
||||
this text is below a table.
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
<HTML>
|
||||
<BODY>
|
||||
<FONT color=blue>
|
||||
<B>blue bold,<I>blue bold italic,
|
||||
</FONT>not blue but bold and italic,
|
||||
<FONT COLOR="red">red bold and italic,
|
||||
</B>red and italic but not bold,</I>red not bold not italic</FONT>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,15 +0,0 @@
|
|||
<HTML>
|
||||
<style>
|
||||
Z { color:red; }
|
||||
</style>
|
||||
<BODY>
|
||||
<FONT><X>
|
||||
<TABLE border="2">
|
||||
<Z>Should be above the Table</FONT>
|
||||
<TR>
|
||||
<TD>
|
||||
Cell
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</BODY></HTML>
|
|
@ -1,29 +0,0 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>How To Give Good Feedback</TITLE>
|
||||
</HEAD>
|
||||
<BODY bgcolor="EEEEEE"><CENTER>
|
||||
Peters test<BR>
|
||||
<FONT SIZE="+1">Peters test</FONT><BR>
|
||||
|
||||
<TABLE border=0 cellspacing=0 cellpadding=10 WIDTH="628">
|
||||
<TR>
|
||||
<TD BGCOLOR="FFFFFF">
|
||||
<FONT FACE="geneva,arial" SIZE="2">
|
||||
<FONT FACE='arial,helvetica'>
|
||||
<FONT SIZE='5'>
|
||||
<B><FONT COLOR ='770000'>How To Give Good Feedback</FONT></B>
|
||||
</FONT>
|
||||
</FONT>
|
||||
<BR>
|
||||
<P><FONT SIZE=1>first appeared: Fast Company issue 17 page 144</FONT></P>
|
||||
<P>
|
||||
<FONT SIZE="+1">Improving Performance Reviews</FONT><BR>
|
||||
<HR SIZE=1 NOSHADE>
|
||||
So you think you've had it with performance reviews?
|
||||
A few years ago, Chris Oster's unit at General Motors got so fed up with traditional reviews that it abolished them.
|
||||
</td>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,33 +0,0 @@
|
|||
<HTML>
|
||||
<HEAD>
|
||||
<SCRIPT LANGUAGE='JavaScript'>
|
||||
|
||||
<!--
|
||||
theagent=navigator.userAgent;
|
||||
pointsize="";
|
||||
if (theagent.indexOf('PPC') != -1 || theagent.indexOf('68K') != -1 || theagent.indexOf('SunOS') != -1 || theagent.indexOf('IRIX') != -1 || theagent.indexOf('HP-UX') != -1 || theagent.indexOf('AIX') != -1 || theagent.indexOf('Linux') != -1) {
|
||||
pointsize="POINT-SIZE=\"12\"";
|
||||
}
|
||||
//-->
|
||||
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=602 BORDER=1>
|
||||
<TR>
|
||||
<TD COLSPAN="2" ROWSPAN=2 VALIGN=TOP BGCOLOR="#FFFFFF">
|
||||
<IMG src="http://register.microsoft.com/library/images/gifs/regwiz/wiz438sidebar.gif" ALT="" BORDER=0>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<SCRIPT LANGUAGE=javascript>
|
||||
<!--
|
||||
function handleTrigger() { }
|
||||
//-->
|
||||
</SCRIPT>
|
||||
<TR>
|
||||
<TD COLSPAN=6 HEIGHT="45" ALIGN=RIGHT>xxx</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,44 +0,0 @@
|
|||
<HTML>
|
||||
|
||||
|
||||
<title>bug1239</title>
|
||||
<span style="background-color:yellow"><a href="bug1259.html">Next...</a></span><br><br>
|
||||
|
||||
|
||||
<CENTER>
|
||||
</FONT>
|
||||
<FONT face=arial,helvetica size=1>
|
||||
Centered arial size=1 [BREAK]
|
||||
</CENTER>
|
||||
</FONT>
|
||||
</FONT>
|
||||
|
||||
<FONT face=arial,helvetica size=1>
|
||||
<B>
|
||||
<FONT size=2>Bold Arial font size=2</B>
|
||||
</FONT>
|
||||
<P>
|
||||
<FONT color=maroon>Maroon Arial font size=1</FONT>
|
||||
<BR>
|
||||
<FONT size=2>
|
||||
<B>Bold Arial font size=2</B>
|
||||
</FONT>
|
||||
[ Arial font size=1 ]
|
||||
<BR clear=all>
|
||||
<FONT size=-2>
|
||||
<CENTER>Centered Arial size=1
|
||||
<P>
|
||||
<CENTER>Centered Arial size=1
|
||||
<P>
|
||||
<FONT size=-1>
|
||||
<B>Bold Arial size=2
|
||||
<BR>
|
||||
</FONT>
|
||||
</B>
|
||||
Centered Arial size=1
|
||||
</P>
|
||||
</CENTER>
|
||||
</CENTER>
|
||||
</FONT>
|
||||
</FONT>
|
||||
</BODY></HTML>
|
|
@ -1,10 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<TITLE>Welcome to MSN.com</TITLE>
|
||||
</head>
|
||||
<body>
|
||||
<a href="http://ads.msn.com/ads/adredir.asp?url=http://www.fidelity.com&image=http://ads.msn.com/ads/MSNBTA/FI610001_TR.gif">
|
||||
fidelity
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use Cwd;
|
||||
|
||||
$curr_dir=`cd`;
|
||||
|
||||
open(OUTFILE,">file_list.txt") || die "Can't open file_list.txt $!";
|
||||
opendir(D,".");
|
||||
|
||||
@files=readdir(D);
|
||||
$curr_dir=~s/\\/\//g;
|
||||
chomp($curr_dir);
|
||||
|
||||
foreach $file(@files) {
|
||||
if($file=~m/\.*m/) {
|
||||
print OUTFILE "$file\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
#
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = TestParser$(BIN_SUFFIX)
|
||||
|
||||
|
||||
CPPSRCS = \
|
||||
TestParser.cpp\
|
||||
$(NULL)
|
||||
|
||||
LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)/../../public
|
|
@ -1,9 +0,0 @@
|
|||
To run parser regression test do the following:
|
||||
|
||||
1) perl ListGen.pl ( this will create file_list.txt )
|
||||
2) make ( build TestParser.exe )
|
||||
3) perl TestParser.pl -b <drive>:/<path>/mozilla/dist/bin file_list.txt
|
||||
( creates base line files. Note: Should be run _without_ your changes )
|
||||
4) apply your patch.
|
||||
5) perl TestParser.pl -v <drive>:/<path>/mozilla/dist/bin file_list.txt
|
||||
( creates .v files and compares against base line. )
|
|
@ -1,11 +0,0 @@
|
|||
first text
|
||||
<table border>
|
||||
<tr>
|
||||
<td>This is the first cell in the table
|
||||
<td>This is the second cell in the table
|
||||
<tr>
|
||||
<td>This is the third cell in the table
|
||||
<td>This is the fourth cell in the table
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,14 +0,0 @@
|
|||
nested table, good syntax.
|
||||
<table border>
|
||||
<tr>
|
||||
<td>This is the first cell in the table
|
||||
<td>This is the second cell in the table
|
||||
<TABLE BORDER>
|
||||
<TR>
|
||||
<TD>inner cell
|
||||
</TABLE>
|
||||
<tr>
|
||||
<td>This is the third cell in the table
|
||||
<td>This is the fourth cell in the table
|
||||
</table>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
first text
|
||||
<table border align=left>
|
||||
<tr>
|
||||
<td>This is the first cell in the table
|
||||
<td>This is the second cell in the table
|
||||
<tr>
|
||||
<td>This is the third cell in the table
|
||||
<td>This is the fourth cell in the table
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,53 +0,0 @@
|
|||
first text
|
||||
<ul>
|
||||
<li>
|
||||
list line 1
|
||||
|
||||
<li>
|
||||
list line 2
|
||||
<table border >
|
||||
<tr>
|
||||
<td>This is the first cell in the table
|
||||
<p> paragraph in cell.
|
||||
<td>This is the second cell in the table
|
||||
<ul>
|
||||
<li> list item1 in cell
|
||||
<li> list item2 in cell
|
||||
<ul>
|
||||
<tr>
|
||||
<td>This is the third cell in the table
|
||||
<td>This is the fourth cell in the table
|
||||
</table>
|
||||
|
||||
<li>
|
||||
list line 3
|
||||
<p>paragraph in list line 3.
|
||||
</ul>
|
||||
|
||||
table aligned:
|
||||
<ul>
|
||||
<li>
|
||||
list line 1
|
||||
|
||||
<li>
|
||||
list line 2
|
||||
<table border align=right>
|
||||
<tr>
|
||||
<td>This is the first cell in the table
|
||||
<p> paragraph in cell.
|
||||
<td>This is the second cell in the table
|
||||
<ul>
|
||||
<li> list item1 in cell
|
||||
<li> list item2 in cell
|
||||
<ul>
|
||||
<tr>
|
||||
<td>This is the third cell in the table
|
||||
<td>This is the fourth cell in the table
|
||||
</table>
|
||||
|
||||
<li>
|
||||
list line 3
|
||||
<p>paragraph in list line 3.
|
||||
</ul>
|
||||
|
||||
last text
|
|
@ -1,12 +0,0 @@
|
|||
The only syntax for Caption is after table start tag.
|
||||
<table border>
|
||||
<caption>caption1</caption>
|
||||
<tr>
|
||||
<td>cell 1-1
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,21 +0,0 @@
|
|||
Multiple caption elements, all outside td cells.
|
||||
<br>Nav 4.0: the first caption is accepted,
|
||||
Others are treated as text, and moved before the table.
|
||||
<br>Xena6.0: ignore misplaced caption tag. contents treated as text.
|
||||
<table border>
|
||||
TextAA
|
||||
<caption>caption1</caption>TextA
|
||||
<caption>caption2</caption>TextB
|
||||
<tr>
|
||||
<caption>caption3</caption>TextC
|
||||
<td>cell 1-1</td>
|
||||
<caption>caption4</caption>TextD
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<caption>caption5</caption>TextE
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2</td>
|
||||
<caption>caption6</caption>TextF
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,16 +0,0 @@
|
|||
Multiple Captions inside cells,
|
||||
<br>Nav. 4.0: last one takes effect, and close td tr.
|
||||
previous captions are totally ignored.
|
||||
If there were no caption3, caption2 would take effect.
|
||||
<br>Xena 6.0: Ignore misplaced caption tag, contents treated as text.
|
||||
<table border>
|
||||
<caption>caption1</caption>
|
||||
<tr>
|
||||
<td>cell 1-1 <caption>caption2</caption>TextA
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2 <caption>caption3</caption>TextB
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,13 +0,0 @@
|
|||
Captions outside of table are treated as text.
|
||||
<caption>caption1</caption>
|
||||
<table border>
|
||||
<tr>
|
||||
<td>cell 1-1
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2
|
||||
</table>
|
||||
|
||||
<caption>caption2</caption>
|
||||
last text
|
|
@ -1,12 +0,0 @@
|
|||
tr terminates caption
|
||||
<table border>
|
||||
<caption>caption1
|
||||
<tr>
|
||||
<td>cell 1-1
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,13 +0,0 @@
|
|||
tr terminates Caption, and close open(font)tags in caption.
|
||||
<br>also terminates those tags. In this case, the Font tag.
|
||||
<table border>
|
||||
<caption>caption1 <br> text1 <font size=6> text2
|
||||
<tr>
|
||||
<td>cell 1-1
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,11 +0,0 @@
|
|||
TD does NOT terminate Caption. TD's contents are used in caption.
|
||||
<table border>
|
||||
<caption>caption1 <br> text1 <font size=6> text2
|
||||
<td>cell 1-1
|
||||
<td>cell 1-2
|
||||
<tr>
|
||||
<td>cell 2-1
|
||||
<td>cell 2-2 no br in caption.
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,13 +0,0 @@
|
|||
extra end table tag is ignored.
|
||||
<table border>
|
||||
<tr>
|
||||
<td>This is the first cell in the table
|
||||
<td>This is the second cell in the table
|
||||
<tr>
|
||||
<td>This is the third cell in the table
|
||||
<td>This is the fourth cell in the table
|
||||
</table>
|
||||
|
||||
</table>
|
||||
|
||||
last text
|
|
@ -1,62 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> Bad Content </title>
|
||||
</head>
|
||||
<style>
|
||||
table {
|
||||
border: solid red;
|
||||
background-color:yellow;
|
||||
}
|
||||
P { background-color: pink; }
|
||||
</style>
|
||||
<body>
|
||||
|
||||
<table >
|
||||
<tr>
|
||||
<td>
|
||||
<P> some text
|
||||
two</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<P>ss
|
||||
<td>three</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<P>one
|
||||
<td>
|
||||
<table>
|
||||
<P>last
|
||||
<tr>
|
||||
<P>two
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<P>three
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
4TD
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<P>three last
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<P>two last
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<P>one last
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> Bad Content </title>
|
||||
</head>
|
||||
<style>
|
||||
body { color:blue; }
|
||||
table {
|
||||
border: solid red;
|
||||
background-color:yellow;
|
||||
}
|
||||
P { background-color: pink; color:red;}
|
||||
H1 { background-color:green; }
|
||||
</STYLE>
|
||||
<body>
|
||||
<table border=1>
|
||||
<tr><P style="color:red">red<A href="foo.htm">hello</A>there
|
||||
<td>
|
||||
<table border=1 bgcolor=green>
|
||||
<tr>
|
||||
<P style="color:blue"> blue
|
||||
<td>
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td>
|
||||
<table border=1>
|
||||
<tr>
|
||||
<P style="color:green">green
|
||||
<td>
|
||||
<table border=1>
|
||||
<tr>
|
||||
<td>
|
||||
HELLO
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<P style="color:orange">orange
|
||||
</tr>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsXPCOM.h"
|
||||
#include "nsIComponentManager.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsParserCIID.h"
|
||||
#include "nsIParser.h"
|
||||
#include "nsILoggingSink.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
// Class IID's
|
||||
static NS_DEFINE_CID(kParserCID, NS_PARSER_CID);
|
||||
static NS_DEFINE_CID(kLoggingSinkCID, NS_LOGGING_SINK_CID);
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
nsresult ParseData(char* anInputStream,char* anOutputStream) {
|
||||
NS_ENSURE_ARG_POINTER(anInputStream);
|
||||
NS_ENSURE_ARG_POINTER(anOutputStream);
|
||||
|
||||
nsresult result = NS_OK;
|
||||
|
||||
// Create a parser
|
||||
nsCOMPtr<nsIParser> parser(do_CreateInstance(kParserCID, &result));
|
||||
if (NS_FAILED(result)) {
|
||||
printf("\nUnable to create a parser\n");
|
||||
return result;
|
||||
}
|
||||
// Create a sink
|
||||
nsCOMPtr<nsILoggingSink> sink(do_CreateInstance(kLoggingSinkCID, &result));
|
||||
if (NS_FAILED(result)) {
|
||||
printf("\nUnable to create a sink\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
PRFileDesc* in = PR_Open(anInputStream, PR_RDONLY, 0777);
|
||||
if (!in) {
|
||||
printf("\nUnable to open input file - %s\n", anInputStream);
|
||||
return result;
|
||||
}
|
||||
|
||||
PRFileDesc* out = PR_Open(anOutputStream,
|
||||
PR_CREATE_FILE|PR_TRUNCATE|PR_RDWR, 0777);
|
||||
if (!out) {
|
||||
printf("\nUnable to open output file - %s\n", anOutputStream);
|
||||
return result;
|
||||
}
|
||||
|
||||
nsString stream;
|
||||
char buffer[1024] = {0}; // XXX Yikes!
|
||||
bool done = false;
|
||||
PRInt32 length = 0;
|
||||
while(!done) {
|
||||
length = PR_Read(in, buffer, sizeof(buffer));
|
||||
if (length != 0) {
|
||||
stream.Append(NS_ConvertUTF8toUTF16(buffer, length));
|
||||
}
|
||||
else {
|
||||
done=true;
|
||||
}
|
||||
}
|
||||
|
||||
sink->SetOutputStream(out);
|
||||
parser->SetContentSink(sink);
|
||||
result = parser->Parse(stream, 0, NS_LITERAL_CSTRING("text/html"), true);
|
||||
|
||||
PR_Close(in);
|
||||
PR_Close(out);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc < 3) {
|
||||
printf("\nUsage: <inputfile> <outputfile>\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
|
||||
if (NS_FAILED(rv)) {
|
||||
printf("NS_InitXPCOM2 failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
ParseData(argv[1],argv[2]);
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
#! /usr/bin/perl
|
||||
|
||||
use Cwd;
|
||||
|
||||
die "\nUsage: perl TestParser.pl [-b|-v] <bin-path> <filelist>
|
||||
b -> create baseline
|
||||
v -> verify changes
|
||||
bin-path -> Ex. <drive>:/<path>/mozilla/dist/bin
|
||||
filelist -> Run ListGen.pl which will yield file_list.txt\n"
|
||||
|
||||
if(@ARGV < 3 || @ARGV > 3);
|
||||
|
||||
open(FILE_LIST,$ARGV[2]) || die "\nCannot open $ARGV[2]\n";
|
||||
|
||||
if($ARGV[0] eq "-b") {
|
||||
foreach $input(<FILE_LIST>) {
|
||||
$input =~s/\n//g;
|
||||
@output=split(/\./,$input);
|
||||
print "\n$input\n";
|
||||
system("$ARGV[1]/TestParser.exe $input $output[0].b");
|
||||
}
|
||||
}
|
||||
elsif($ARGV[0] eq "-v") {
|
||||
foreach $input(<FILE_LIST>) {
|
||||
$input =~s/\n//g;
|
||||
@output=split(/\./,$input);
|
||||
print "\n$input\n";
|
||||
system("$ARGV[1]/TestParser.exe $input $output[0].v");
|
||||
system("diff -u $output[0].b $output[0].v");
|
||||
}
|
||||
}
|
||||
else {
|
||||
print "\n\"$ARGV[0]\" unknown....\n";
|
||||
print "\nUsage: perl TestParser.pl [-b|-v] <bin-path> <filelist>\n\n";
|
||||
}
|
||||
|
||||
close(FILE_LIST);
|
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use Cwd;
|
||||
|
||||
$curr_dir=`cd`;
|
||||
|
||||
open(OUTFILE,">url_list.txt") || die "Can't open url.txt $!";
|
||||
opendir(D,".");
|
||||
|
||||
@files=readdir(D);
|
||||
$curr_dir=~s/\\/\//g;
|
||||
chomp($curr_dir);
|
||||
|
||||
foreach $file(@files) {
|
||||
if($file=~m/\.htm/) {
|
||||
print OUTFILE "file:///$curr_dir/$file\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>test ACRONYM tag</title>
|
||||
</head>
|
||||
<body>
|
||||
test Acronym<br>
|
||||
1normal text in body line 1.
|
||||
<Acronym>
|
||||
A This text is in Acronym
|
||||
<br> B line 2 in Acronym
|
||||
</Acronym>
|
||||
2normal text in body line 2.
|
||||
</body>
|
||||
</html>
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
<body>
|
||||
|
||||
<a name="516875">
|
||||
|
||||
<B><blockquote>Note!
|
||||
|
||||
</blockquote></B>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
This is from http://margaux/manual-proxy-20/cfgservr.htm
|
||||
|
||||
|
||||
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче