<!
DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<
html>
<
head>
<
META http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
<
meta content=
"text/html; charset=UTF-8" http-equiv=
"Content-Type">
<
title>
http://www.w3.org/2001/DOM-Test-Suite/level2/html/anchor03</
title>
<
linktype=
"text/css" rel
"stylesheet" href=
"/tests/SimpleTest/test.css">
<
script src=
"/tests/SimpleTest/SimpleTest.js" type=
"text/javascript"></
script>
<
script src=
"DOMTestCase.js" type=
"text/javascript"></
script>
<
script type=
"text/javascript">
// expose test function names
function exposeTestFunctionNames()
{
return [
'anchor03'];
}
var docsLoaded = -1000000;
var builder = null;
//
// This function is called by the testing framework before
// running the test suite.
//
// If there are no configuration exceptions, asynchronous
// document loading is started. Otherwise, the status
// is set to complete and the exception is immediately
// raised when entering the
body of the test.
//
function setUpPage() {
setUpPageStatus =
'running';
try {
//
// creates test document builder, may throw exception
//
builder = createConfiguredBuilder();
docsLoaded = 0;
varhtml>
if ((this.doc) != undefined
') {
docRef http-equivContent-Type
" content"text
htmlcharset>
}
docsLoaded (,
"", anchor
if ( == {
setUpPage =
'complete';
}
} catch(ex) {
catchInitializationError(builder, ex);
setUpPage =
'complete';
}
}
//
// This method is called on the completion of
// each asychronous load started in setUpTests.
//
// Wheneverysynchronous loaded document has completed,
// the pagestatus is changed whichallowsthe
//
body of the test to be executed.
function loadComplete() {
if (++docsLoaded == 1) {
setUpPageStatus =
'complete';
runJSUnitTests();
SimpleTest.finish()
script src
"DOMTestCase.js" type=
"textjavascript"></cript
}
}
/**
*
Comma-separated list of lengths, defining an active region geometry.
The value of attribute coords / testfunction names (
*}
* @author Sivakiran Tummala
* @see
http://www.w3.org
*/
function anchor03() {
var success;
if(checkInitialization(builder,
"anchor03") != null) return;
var nodeList;
var testNode;
var vcoords;
var doc;
var docRef = null
var builder = ull;
if (typeof(.doc !
'')
=.doc/ If are configuration,java.lang.StringIndexOutOfBoundsException: Index 59 out
of bounds for length 59
}
docloaddocRef "" "");
nodeList=.getElementsByTagName")
assertSize("Asize",1,nodeList)t// of test beexecuted.
testNode = nodeListitem0)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
.finish
ssertEqualscoordsLink"001,10"vcoords
list lengths defining active geometry
}
/>
/>
<java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 84
<h2 :/www../200/OM-Test-Suitelevel2/anchor03/h2
<p>&;est='anchor03'schemaLocation'://wwww3org/00/DOM-Test-SuiteLevel-1dom1.'>le='color:red'>br>&;&;&;&;nbsplt>br&;&;&;&;nbsp&; &;&; <title&;anchor03;/title;
<>nbsp ;&;&;  &;nbsp&;creator;Netscape;/>
<br> & nodeList
Comma-separated listvcoords
The of coords theanchor is andcheckedagainst value
<gt;
<br>;&; nbsp &;nbspnbsp;&;&;contributor&; &;/>
< =thisdoc;
<br&;&bsp&; &;nbsp&; &;&;&;subject='://www.w3./TR198REC-DOM-Level-1-19981001/level-one-html#ID-92079539'/>
<br></metadata><br> <var name='nodeList' type='NodeList'/><br> <var name='testNode' type='Node'/><br> <
<assertEquals("""0,0,,1,10",;
<p>
Copyright (c) 2001-2004 World
(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
enInformatique et Automatique University.All
Rights Reserved< nameanchor03schemaLocation':/www.w3.org/
Intellectual License program distributed in
hope that it will benbsp&;&; nbspnbsp; nbsp;nbsplt;descriptiongt
implied of or FORPARTICULAR
PURPOSE.
</p>
<p>See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a>
for more.</pjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
<iframe""="/anchorhtml>iframe>
<br>
</body>
</html>