Re: Automation of DOM Test suite (was: Progress on test harness)

Le mardi 24 avril 2007 à 14:26 +0200, Till Halbach a écrit :
> On Tue, 24 Apr 2007 14:22:18 +0200, Dominique Hazael-Massieux <dom@w3.org>  
> > Le mardi 24 avril 2007 à 14:14 +0200, Till Halbach a écrit :
> >> I'm not an expert with JavaScript and Dom, but I believe the problem  
> >> comes
> >>  from the fact that you try to access elements by particular <id>s,  
> >> while
> >> they in fact are <name>s in the form. You can add the appropriate <id>
> >> attributes to the respective elements,
> >
> > They are already there, as far as I can tell.

> Could you please post a link to the latest version of the script?

Sure, there it is:
http://www.w3.org/2007/03/dom-tests/selfhtml.js

In particular, the markup for the form reads as:
        document.write("<form name='testeval' id='testeval'
        action='http://www.w3.org/2007/03/mth/harness?ts=dom1'
        method='post'><div><input type='hidden' name='undertesturi'
        value='" + self.location + "' /><input type='submit'
        name='result' value='Pass [1]' accesskey='1' id='pass' /><input
        type='submit' name='result' value='Fail [2]' accesskey='2'
        id='fail' /><input type='submit' name='result' value='Cannot
        tell [3]' accesskey='3'
        id='cannotTell' /></div></form>");        

Dom

Received on Tuesday, 24 April 2007 12:35:04 UTC