W3C home > Mailing lists > Public > public-html@w3.org > February 2008

Re: Validation error frequencies

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Sun, 03 Feb 2008 16:31:47 +0100
Message-ID: <47A5DE63.8080201@students.cs.uu.nl>
To: "Michael A. Puls II" <shadow2531@gmail.com>
CC: Henri Sivonen <hsivonen@iki.fi>, Geoffrey Sneddon <foolistbar@googlemail.com>, Sam Ruby <rubys@us.ibm.com>, HTML Issue Tracking WG <public-html@w3.org>
Michael A. Puls II schreef:
> For .href,
> Leading and trailing raw spaces are stripped in all 4 browsers.

At least in XML, this is built-in behaviour of attributes, afaik. Not 
sure about HTML5.

> For getAttribute,
> Firefox, Opera and Safari give the actual value as it was in the
> source. IE gives the same (at least in this case) as .href.

I think in IE, as a general rule you can say that 
node.getAttribute(name) is identical to node[name].

GetAttribute doesn’t actually look at the XML, but as far as I know 
always accesses the DOM property with the same name. Thus, URL values 
are processed and resolved against their base URI even though that 
doesn’t make sense. For this same reason, e.g. label.getAttribute('for') 
also doesn’t work in IE, you have to use label.getAttribute('htmlFor').


Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.

Received on Sunday, 3 February 2008 15:32:20 UTC

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