W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: 3.5.2. Focus

From: <moz@jeka.info>
Date: Wed, 01 Aug 2007 04:14:14 +0200
Message-ID: <20070801041414.g5sbhcvzcockscsc@www.hosting-agency.de>
To: public-html@w3.org

On 7/31/07, Jon Barnett <jonbarnett@gmail.com> wrote:

> This isn't the friendliest test case,

This one is more fiendly:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0D%0A%3Cinput%20value%3D%22error%22%3E%20%3Ctextarea%3E%3C/textarea%3E%0D%0A%3Cspan%20tabindex%3D%220%22%3E%20alpha%20%3Ca%20href%3D%22/%22%20onclick%3D%22return%20false%3B%22%3E%20beta%20%3C/a%3E%20gamma%20%3C/span%3E%0D%0A%0D%0A%3Cscript%3E%20setInterval%28%22document.getElementsByTagName%28%27input%27%29%5B0%5D.value%3D%20document.activeElement.tagName%22%2C%20500%29%3B%20%3C/script%3E

> Firefox doesn't support document.activeElement or any equivalent, AFAIK.

Latest Minefield (Firefox3) does it, close to IE7.

> I don't have Safari handy

Safari 3beta (Win) doesn't support this testcase.

> Maybe the body element is better in this case.

+1

j.j.
Received on Wednesday, 1 August 2007 02:14:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:03 GMT