Re: ping dorayme.....can you fix this problem?



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
.



Relevant Pages

  • Re: ping dorayme.....can you fix this problem?
    ... When the element only contains phrasing content: ... where flow content is expected. ... Currently, if one wants to validate against HTML 4, one needs to resort to inline element styling it as a block. ... Unnecessary complicated markup, like: ...
    (alt.html)
  • Re: a language is a language
    ... simpler phrasing, HTML is obviously not a language: ... If C is a language, so is HTML. ... "non-obvious" programming language. ...
    (comp.programming)