W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2010

[whatwg] a element and .text

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 21 Jun 2010 11:25:57 -0700
Message-ID: <AANLkTinRQhzQIGVON3arhUgJ3iex-yVXw5PvKr7LnMtF@mail.gmail.com>
On Mon, Jun 21, 2010 at 11:09 AM, Olli Pettay <Olli.Pettay at helsinki.fi> wrote:
> Hi all,
>
> I wonder why a element should have .text which
> is basically just the same thing as
> .textContent.
>
> I'd prefer removing .text.

It's actually worse, see

http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/nsHTMLAnchorElement.cpp#367

Yes, I'd strongly prefer to remove that too. I say lets remove it from
gecko and see if it breaks any sites.

/ Jonas
Received on Monday, 21 June 2010 11:25:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:24 UTC