W3C home > Mailing lists > Public > www-dom-ts@w3.org > May 2002

Re: Status check

From: Rick Rivello <richard.rivello@nist.gov>
Date: Tue, 21 May 2002 07:04:55 -0400
Message-ID: <0d0101c200b7$56bdce10$573b0681@sdct.nist.gov>
To: <www-dom-ts@w3.org>, "Dimitris Dimitriadis" <dimitris@ontologicon.com>

----- Original Message ----- 
From: "Dimitris Dimitriadis" <dimitris@ontologicon.com>
To: <www-dom-ts@w3.org>
Cc: <bclary@netscape.com>; <edward@jsunit.net>
Sent: Monday, May 20, 2002 5:08 PM
Subject: Status check

> All,
> Since there's not been that much activity around the DOM TS lately, I 
> wanted to get a picture of what people are working on currently. Last 
> time we did a roll call, activity was taking place in:
> 1. Framework issues (Bob requested some feedback on browser behaviour)
> 2. HTML test sanity check
> 3. Licensing issues (Philippe sent a draft for a new grant of license).
> On 2, I take it that we do not need that much longer to conclude the 
> sanity checking on those level 2 HTML tests that are used as level 1 
> HTML tests as well.

We are working on finishing the HTML tests for both level 1 and level 2.
I am putting some finishing touches on approx 75 level 1 and 95 level 2
tests that will soon be committed.  

I am getting inconsistent results when running the tests through JsUnit.  Hopefully
the new version of JsUnit that Bob Clary mentioned in his email will take care of these

Also can anyone give me some suggestions on how tests for the blur(), focus(), select()... etc
methods should be written.  I'm not sure on how to go about these tests.

For example the blur() method on the HTMLAnchorElement interface
says that it removes keyboard focus from this element.
How would you test that using the DOMTS framework?

I am also having problems with the contentDocument tests for the HTMLFrameElement,
HTMLIFrameElement and HTMLObjectElement interfaces.

I am getting a null value returned for the document this frame contains.

Here is the test and the file loaded:

<?xml version="1.0" encoding="UTF-8"?>


Copyright (c) 2001 World Wide Web Consortium, 
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University).  All 
Rights Reserved.  This program is distributed under the W3C's Software
Intellectual Property License.  This program is distributed in the 
hope that it will be useful, but WITHOUT ANY WARRANTY; without even

See W3C License http://www.w3.org/Consortium/Legal/ for more details.

<!DOCTYPE test SYSTEM "dom2.dtd">
<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="HTMLIFrameElement11">
    The contentDocument attribute specifies the document this frame contains,
    if there is any and it is available, or null otherwise.

    Retrieve the contentDocument attribute of the first FRAME element
    and examine it's value.  
<contributor>Rick Rivello</contributor>
<date qualifier="created">2002-05-08</date>
<var name="testNode" type="Element"/>
<var name="cd" type="Document" />
<var name="vtitle" type="DOMString"/>
<var name="doc" type="Document"/>
<load var="doc" href="iframe2" willBeModified="false"/>
<getElementById interface="Document" obj="doc" var="testNode" elementId='"Iframe2"'/>
<contentDocument interface="HTMLIFrameElement" obj="testNode" var="cd"/>
<notNull obj="cd"/>
<title interface="HTMLDocument" obj="cd" var="vtitle"/>
<assertEquals actual="vtitle" expected="'test'" id="titleLink" ignoreCase="false" />

********************iframe2.xml ********************************************

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
   PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
<html xmlns='http://www.w3.org/1999/xhtml'>
<title>NIST DOM HTML Test - FRAMESET</title>
<iframe id="Iframe1" name="Iframe1" src="rick1.html">IFRAME1</iframe>
<iframe id="Iframe2" src="rick2.html" name="Iframe2">IFRAME2</iframe>


However, when I run the following script the contentDocument returned is not null.

<title>Testing iframe DOM</title>
function showTitle (id)
    // Mozilla 
    alert ("title = " + document.getElementById(id).contentDocument.title);
<iframe id="hiddenIFrameID1" src="rick1.html" frameborder="1">
<input type="button" onclick="showTitle('hiddenIFrameID1');"
    value="Display IFrame Title"> 
<iframe id="hiddenIFrameID2" src="rick2.html" frameborder="1">
<input type="button" onclick="showTitle('hiddenIFrameID2');"
    value="Display IFrame Title"> 

Any help would be appreciated.

Rick Rivello

Received on Tuesday, 21 May 2002 07:07:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:05 UTC