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

[whatwg] a element and .text

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 9 Aug 2010 23:52:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1008092351210.13322@ps20323.dreamhostps.com>
On Mon, 21 Jun 2010, Olli Pettay wrote:
> 
> I wonder why a element should have .text which
> is basically just the same thing as
> .textContent.
> 
> I'd prefer removing .text.

I'm happy to remove it if we can for compat.


On Mon, 21 Jun 2010, Jonas Sicking wrote:
> 
> I say lets remove it from gecko and see if it breaks any sites.

Any news on this?


On Mon, 21 Jun 2010, Olli Pettay wrote:
> 
> I was referring to html5 draft, which specifies that .text
> should be the same as .textContent.
> But sure, the reason why gecko has .text is backwards compatibility
> with Netscape 4. Netscape 4 .text isn't the same as .textContent.

Is it different enough that we should change the spec for compat?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 9 August 2010 16:52:10 UTC

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