Re: ping dorayme.....can you fix this problem?
- From: "Jonathan N. Little" <lws4art@xxxxxxxxx>
- Date: Sun, 30 Jan 2011 10:05:35 -0500
Stanimir Stamenkov wrote:
Sun, 30 Jan 2011 08:43:43 -0500, /Jonathan N. Little/:Stanimir Stamenkov wrote:
<http://www.w3.org/TR/html5/text-level-semantics.html#the-a-element>:
Contexts in which this element can be used:
When the element only contains phrasing content: where phrasing
content is expected.
Otherwise: where flow content is expected.
(...)
The a element may be wrapped around entire paragraphs, lists,
tables, and so forth, even entire sections, so long as there is no
interactive content within (e.g. buttons or other links).
Even lowers my dwindling opinion of this developing standard. Lets make
is easier for the unsavory characters to abuse...
Do you have an use case in mind where block-level links will make it
easier to abuse (what)?
See the <http://www.whatwg.org/> site for an example where block-level
links are necessary - a menu where links are not simple titles but
blocks with a title and further description. One wants the whole blocks
to be active (like <button> elements).
Currently, if one wants to validate against HTML 4, one needs to resort
to inline element styling it as a block. This leads to:
* Unnecessary complicated markup, like:
<div><a href="..."><span class="block">...</span></a></div>
instead of:
<a href="..."><div>...</div></a>
Why forbidding the second form if it just makes things easier for
authors and then have no more complications for browser implementations?
* Styling being optional may result in suboptimal rendering where author
styling not applied.
<html>
<head><title>Lollipop Guild</title></head>
<body>
<a href="somewherenasty" onclick="somethingbad()">
<div>
Innocent looking page...
<span class="fakelink" title="http://www.safeplace.com">Somewhere Safe</span>
....
</div>
</a>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.
- Follow-Ups:
- Re: ping dorayme.....can you fix this problem?
- From: Stanimir Stamenkov
- Re: ping dorayme.....can you fix this problem?
- References:
- ping dorayme.....can you fix this problem?
- From: richard
- Re: ping dorayme.....can you fix this problem?
- From: Jonathan N. Little
- Re: ping dorayme.....can you fix this problem?
- From: Stanimir Stamenkov
- Re: ping dorayme.....can you fix this problem?
- From: Jonathan N. Little
- Re: ping dorayme.....can you fix this problem?
- From: Stanimir Stamenkov
- ping dorayme.....can you fix this problem?
- Prev by Date: Re: Unicode subscripts not displaying correctly
- Next by Date: Re: ping dorayme.....can you fix this problem?
- Previous by thread: Re: ping dorayme.....can you fix this problem?
- Next by thread: Re: ping dorayme.....can you fix this problem?
- Index(es):
Relevant Pages
|