[whatwg] a element and .text
jonas at sicking.cc
Mon Jun 21 14:32:32 PDT 2010
On Mon, Jun 21, 2010 at 12:00 PM, Olli Pettay <Olli.Pettay at helsinki.fi> wrote:
> On 6/21/10 9:25 PM, Jonas Sicking wrote:
>> On Mon, Jun 21, 2010 at 11:09 AM, Olli Pettay<Olli.Pettay at helsinki.fi>
>>> Hi all,
>>> I wonder why a element should have .text which
>>> is basically just the same thing as
>>> I'd prefer removing .text.
>> It's actually worse, see
>> Yes, I'd strongly prefer to remove that too. I say lets remove it from
>> gecko and see if it breaks any sites.
>> / Jonas
> 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.
Indeed, my point was that I think we should just go ahead and make the
change in Firefox and we can use information from that test as basis
for changing the spec.
More information about the whatwg