HTML5: DTD module for video/audio

The following listings shows a first draft of the DTD module for the new video/audio elements. There are some challenges in the spec:

1. The <video> element has a content model that depends on the presence of the src attribute. The src attribute contains an URI for the video ressource. Alternatively an author can use the <source> child element. Do we need two options to express the ressource URI? I don’t think so. Therefore I dropped the src attribute, and solving the DTD problem.

2. The <video> element’s content model has a transparent part. This could be a nice extension of XML/SGML!? As long as XML can’t express this, I have to find another solution for the DTD. Since simplicity wins, I propose the following solution: The <video> element is a block element (it’s content will be displayed as a block), it may therefore not be placed inside blocks like <p> — and the “transparent” part will be a <div>. The audio element is similar but may occur as an inline element; it’s “transparent” part is a <span>.

Take a look at the listing and leave a comment!

Read the rest of this entry »

Posted by sm on Juni 7th, 2011

Filed under DTD, proposal | Kommentare deaktiviert

data- versus data:

I like the concept of the data-* attributes introduced with HTML5. I don’t like how they are implemented. Just one character had to be changed.

Read the rest of this entry »

Posted by sm on Juni 3rd, 2011

Filed under critique, proposal | 1 Comment »

HTML5: DTD module for body

Here’s my first draft for the body of an HTML5 document. It needs some explanations:

Read the rest of this entry »

Posted by sm on Juni 1st, 2011

Filed under DTD, proposal | Kommentare deaktiviert

HTML5: DTD module for head

Here’s my first draft of the DTD module for the head element.

Read the rest of this entry »

Posted by sm on Mai 31st, 2011

Filed under DTD | 1 Comment »

Do we need h2 .. h6?

Obviously the authors of the HTML5 spec don’t have the courage to clean up the language. Backwards compatibility seems to be the goal. Consequently the interaction of headings and sections is a mess.
Read the rest of this entry »

Posted by sm on Mai 31st, 2011

Filed under critique, proposal, question | Kommentare deaktiviert

How to achieve perfection?

The back of my company’s business cards contains a quote from Antoine de Saint-Exupéry. I found the English translation and it reads:

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

If perfection as defined by Saint-Exupéry  is the goal, HTML5 is – in my opinion – far from being perfect. Even if not perfection, but improvement is the goal, there’s still a lot to do. In this blog I will (today and in the future) ask why some things must be so complicated in HTML(5).
Read the rest of this entry »

Posted by sm on Mai 31st, 2011

Filed under critique, proposal | Kommentare deaktiviert

The kick-off post

Well, every blog needs a first post. This is it. Everything that you might want to know right now, should be in the FAQ.

Posted by sm on Mai 30th, 2011

Filed under .organisation | 3 Comments »

 
Creative Commons License
HTML5 DTD by Stefan Mintert/Linkwerk GmbH is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.