[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    (fwd) test for contains() [Fwd: Re: Good review for Konqueror 2.1 - DOM compatibility]
From:       Dirk Mueller <mueller () kde ! org>
Date:       2001-03-02 17:00:46
[Download RAW message or body]

Hi, 

in case somebody is bored..


Dirk


Return-path: <lucy-ples@mtu-net.ru>
Envelope-to: dmuell@aixs1.rhrk.uni-kl.de
Delivery-date: Tue, 27 Feb 2001 23:21:37 +0100
Received: from aixs1.rhrk.uni-kl.de [131.246.137.3]
	by localhost with POP3 (fetchmail-5.6.0)
	for damware@localhost (single-drop); Tue, 27 Feb 2001 23:42:17 +0100 (CET)
Received: from sun.rhrk.uni-kl.de ([131.246.137.50])
	by aixs1.rhrk.uni-kl.de with smtp (Exim 3.03 #2)
	id 14XsUy-000GhC-00
	for dmuell@aixs1.rhrk.uni-kl.de; Tue, 27 Feb 2001 23:21:36 +0100
Received: from mail.uni-kl.de  ( mail.uni-kl.de [131.246.137.52] )
          by sun.rhrk.uni-kl.de id aa16450 for <dmuell@aixs1.rhrk.uni-kl.de>;
          27 Feb 2001 23:21 MET
Received: from master.kde.org (max.tat.physik.uni-tuebingen.de [134.2.170.93])
	by mail.uni-kl.de (8.11.0/8.11.0) with SMTP id f1RMLYd14637
	for <dmuell@rhrk.uni-kl.de>; Tue, 27 Feb 2001 23:21:35 +0100 (MET)
Received: (qmail 31480 invoked by uid 1055); 27 Feb 2001 22:20:03 -0000
Delivered-To: kde.org-mueller@kde.org
Received: (qmail 31455 invoked from network); 27 Feb 2001 22:20:02 -0000
Received: from post.cnt.ru (212.15.122.243)
  by max.tat.physik.uni-tuebingen.de with SMTP; 27 Feb 2001 22:20:02 -0000
Received: from localhost.localdomain (ppp1-101.dial-up.cnt.ru [212.15.118.101])
	by post.cnt.ru (8.11.2/8.11.1) with SMTP id f1RMIrd25440
	for <mueller@kde.org>; Wed, 28 Feb 2001 01:18:53 +0300
Content-Type: text/plain;
  charset="utf-8"
From: Vadim Plessky <lucy-ples@mtu-net.ru>
Reply-To: Vadim Plessky <lucy-ples@mtu-net.ru>
To: Dirk Mueller <mueller@kde.org>
Subject: test for contains() [Fwd: Re: Good review for Konqueror 2.1 - DOM compatibility]
Date: Wed, 28 Feb 2001 01:19:15 +0000
X-Mailer: KMail [version 1.2]
MIME-Version: 1.0
Message-Id: <01022801191501.01043@localhost.localdomain>
X-Spam-Rating: max.tat.physik.uni-tuebingen.de 0/1000/N
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mail.uni-kl.de id f1RMLYd14637
X-UIDL: 31/"!SB?"!nZ\!!1fB!!



----------  Пересланное сообщение  ----------
Subject: Re: Good review for Konqueror 2.1 - DOM compatibility
Date: Tue, 27 Feb 2001 19:30:25 +0100
From: Peter-Paul Koch <ppk@xs4all.nl>
To: Vadim Plessky <lucy-ples@mtu-net.ru>


>Dear Peter-Paul,
>
>Can you please provide testcase for this contains() method?
>(and several itesm below)

I did something like

<P ID=test>Some text and a <SPAN ID=test2>span</SPAN>!</P>

and then

var x = document.getElementById('test');
if (x.contains(document.getElementById('test2')) alert('Yep');
else alert('Nope');

Didn't work in the beta.

>Yes, cloneNode was working for me - in A HREF example on Peter-Pauls page
>(where MS IE fails 3 times and Mozilla - 1)
>Konqi run through all 4 examples correctly.

Yep, the only browser to execute everything correctly.

ppk


-------------------------------------------------------

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
http://kde2.newmail.ru/index_rus.html  (Russian)
Do you have Arial font installed? Just test it!
http://kde2.newmail.ru/font_test_arial.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic