[whatwg] href on any element

 
What practical use has this for Mr Joe Public?

Give me a really useful example in very simple wording!

Francisco
-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of dolphinling
Sent: 29 August 2006 16:46
To: WHAT WG List
Subject: Re: [whatwg] href on any element

Lachlan Hunt wrote:
> Andrew Fedoniouk wrote:
>> If yes then let it be just :
>>
>> <section href="...">
>>  <h2>...
>>  <p>...
>> </section>
> 
> But that isn't backwards compatible.

data:text/html,<table><tr><a hef="www.google.com"><td>link to
google</td></a><td>plain text</td></tr></table>

Neither is <a> around table cells or list items.

Personally, I like the semantics of href on any element. "This element is a
link" seems cleaner than "Here is a link element that surrounds some other
element or text content". Assuming no one does find a backwards-compatible
way to link any element, I'd prefer going forwards with href applying to
everything.

(Note that I haven't thought about it much, though, and I do have a vague
hazy memory of not liking something about the way XHTML 2 is doing it. I
would definitely want more thought put into it than I have.)

--
dolphinling
<http://dolphinling.net/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3210 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20060829/af0023a7/attachment.bin>

Received on Tuesday, 29 August 2006 09:02:22 UTC