W3C home > Mailing lists > Public > public-html@w3.org > May 2009

getElementsByName should match any element

From: Simon Pieters <simonp@opera.com>
Date: Thu, 14 May 2009 16:55:35 +0200
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.utxc2x0didj3kv@simon-pieterss-macbook.local>
It seems getElementsByName as specified in HTML5 does not match what WebKit, Gecko and Opera do.

HTML5 says to only match a certain set of elements with a name attribute. WebKit and Gecko match any element (in any namespace) with a name attribute. Doing what the spec says will likely break pages [1], so we'll probably align with WebKit and Gecko here.

[1] http://my.opera.com/hallvors/blog/show.dml/265582

Simon Pieters
Opera Software
Received on Thursday, 14 May 2009 14:56:18 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:47 UTC