W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2008

[whatwg] Proposal for a link attribute to replace <a href>

From: Simon Pieters <simonp@opera.com>
Date: Wed, 30 Jul 2008 15:46:46 +0200
Message-ID: <op.ue3xv8uhidj3kv@zcorpandell.linkoping.osa>
On Wed, 30 Jul 2008 15:29:47 +0200, James Graham <jg307 at cam.ac.uk> wrote:

> I think <table><a><tr> also causes problems;


> being able to link whole table rows seems like one of the major use  
> cases for this proposal.

I don't know how to do that short of using script.

Perhaps HTMLElement should have a links collection to make it simpler to  
write the script?

    <tr onclick="links[0].click()">

> Would the implementor feedback that global href is a bad idea still  
> apply if instead of "global" it was "large set of elements" where the  
> large set would explicitly not include things like form elements?

Allowing href in more places is potentially a security problem since  
suddenly you could run scripts from things that blacklist-based sanitizers  
don't filter out.

Simon Pieters
Opera Software
Received on Wednesday, 30 July 2008 06:46:46 UTC

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