Comments on: dd-details wrong again https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/ helping you implement HTML5 today Wed, 29 Jun 2016 01:58:29 +0000 hourly 1 By: Anika https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-28958 Mon, 24 Sep 2012 12:47:04 +0000 http://html5doctor.com/?p=991#comment-28958 What about simplifying caption/legend/summary/figcaption by inventing *one* new element (e.g. <h>, or if that causes problems with XHTML2, <cap> or whatever) and use it for the new elements, but also make it optionally equivalent to the old ones?

So, e.g. you can use <table><caption> or <table><h> equivalently and <details><h> as well.

That way you have a standardised element for “inner headings” and have only *one* new element (and not two) and can potentially get rid of two more later on (or even now?).

]]>
By: Alohci https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-2160 Mon, 01 Feb 2010 01:13:36 +0000 http://html5doctor.com/?p=991#comment-2160 Since 30th January, the heading element for figure is now “figcaption”, replacing DT. DD is simply dropped from figure. The body of figure is everything inside the figure element except for figcaption and its contents.

Details is changed similarly, with the heading element for details becoming “summary”.

]]>
By: Blijbol https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1721 Thu, 26 Nov 2009 22:38:59 +0000 http://html5doctor.com/?p=991#comment-1721 Appearantly, there’s a very simple solution to this problem. Yes, much simpler than the solutions presented here.

Read about it on my blog:
http://blog.jeroenvandergun.nl/7-html5-figure-and-details-do-not-break-in-ie

]]>
By: Blijbol https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1720 Thu, 26 Nov 2009 20:37:19 +0000 http://html5doctor.com/?p=991#comment-1720 I think the problem is smaller than it seems. Why do you want to style the dd element? The only logical reason is probably to remove the margin on the left. It isn’t a huge problem if this style is bled to the parent since the parent probably doesn’t have a margin anyway.

For all other cases, you can either insert a span element inside the dd element and style the span, or put the figure or details element inside a div and style that div.

]]>
By: Lars Gunther https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1406 Fri, 16 Oct 2009 15:43:28 +0000 http://html5doctor.com/?p=991#comment-1406 I am just about ready to give up on this. I have been arguing that dt/dd is bad since it changes the semantics as well as the syntax from its usage in dl, which is really bad from a teaching POV. To deaf ears. Dean Edwards et al have been arguing that the solution is bad from a technical POV. To deaf ears.

I really, really wish that something that actually was untested and thrown out like an “hey, this is an interesting idea” would not be carved into stone as it apparently has.

]]>
By: Tino Zijdel https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1402 Fri, 16 Oct 2009 08:09:18 +0000 http://html5doctor.com/?p=991#comment-1402 Just a thought: Microsoft is still supporting IE6 and IE7 and actively patching (security) issues in those browsers. Wouldn’t it be possible to ask Microsoft to patch this particular issue in IE6 and IE7 and distribute that patch the same as other patches for IE6 and 7? Chances are that people who will still be using IE6/7 some years from now will at least use a patched version, so imo it’s not too late to solve this problem at the source.

]]>
By: SelenIT https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1377 Wed, 14 Oct 2009 17:23:51 +0000 http://html5doctor.com/?p=991#comment-1377

Ironically the problem isn’t with the dt part of the solution, it’s actually with the dd.

The problem is with the last part of it, whatever it is. Just swapping dt and dd in the example seems to fix the problem with dd styling… until we try to style dd as well.

This is the common problem of old IEs (7 and before) — they completely ignore the closing tags for all sort of list items (li, dt or dd), closing them only implicitly, when the opening tag of the next list item or the closing tag of the list itself appears. I guess that it was done to ensure that the lists contain only allowed elements as direct children (for making the tag soup parsing easier).

And IMHO this is the reason not to reuse any list-related tags in any context other than lists…

]]>
By: Chris Pratt https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1369 Wed, 14 Oct 2009 01:59:43 +0000 http://html5doctor.com/?p=991#comment-1369 Couldn’t <figure> and <details> be treated just like <section> and simply indent and continue the document outline with <h1>-<h6>? Think of it as just another <section> but with additional semantics.

]]>
By: Lisa Firke https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1365 Tue, 13 Oct 2009 18:25:12 +0000 http://html5doctor.com/?p=991#comment-1365 Okay, let’s not use dt/dd. The hack is very, very ugly. And the reality is, we have to make some allowance for IE6 and 7. We do. We don’t like it, but we do.

Can anyone tell me what would be so heinously wrong with just marking up a the content of detail and figure with an h5 or h6 (indicating suitable subordination to the doc as a whole) and a paragraph? Must every title-like thingie and accompanying content have a special contextual tag, or can we just be simpler about things?

Or is that just CRAZY talk? ; )

]]>
By: Remy Sharp https://stevefaulkner.github.io/html5doctored/dd-details-wrong-again/#comment-1362 Tue, 13 Oct 2009 16:09:40 +0000 http://html5doctor.com/?p=991#comment-1362 @Alejandro – thats pretty much what I was arguing in the IRC channel here: http://krijnhoetmer.nl/irc-logs/whatwg/20091013#l-554

However I understand the problem with this – and I’ll be posting a follow up blog post here shortly explaining how to style up figure and details and how to treat it.

]]>