Sample of newly proposed elements
Test of current UA preseentation of define, dfn, term, var, and abbr
Here's a paragraph demonstrating the current presentation of the term element which is a new element that contains a term that might be used in a document index or in a document glossary along with this elaborated definition (dfn). Such a dfn element includes a @title attribute that indicates the term (term), abbreviation (abbr) or variable (var) it defines as is traditionally the case. After defining any term using the dfn element, aauthors cna continue using the term wrapped in the term element wihtout providing any other markup and still get a hovering display of the definition for any HTML5 conforming browser. It may also be worthwhile to introduce a new attribute here like @defref that would contain the s. UAs wolud then associate this definition with every case-sensitive matching string in the document. If the instead dfn element includes the casesensitive boolean attribute, the comparision match would be restricted to case sensitive mathing terms, abbreviations and variables only. (the element type names in parentheses are enclosed in those same element and so indicate the default presentation in your current browser).
Examples from proposal for new elements
The following examples are drawn from the proposal to incorporate two new elements: DEFINE and TERM. These two elements will round out authoring support for introducing and definng terms. The elements provide presentational hooks, introduce new attributes to support pronunciation for speaking browsers and for user proununciation. Finally, they introduce richer semantics for a commonly needed authoring facility. This page is mostly meant to demonstrate that these proposals degrade gracefully. While authors may want to provide a richer preserntation of these semantics, the current default style sheet of most common browsers does not provide much more for either the current HTML4 approach or the HTML5 draft proposed approach. SIntroducing these elements and attributes will, however, provid a much better authoring and user experience in futuer HTML5 compliant browsers.
- An abbreviation to describe the relational database language: SQL.
- A plural term markekup to match the singular vriant in the definition: classes
- A plural variant of an abbreviation markup to match the singfular version in the abbreviation's defining instance: Zats
Comparision of examples from draft with newly proposed elements
Abbreviation only example
Current approach
The GDO
is a device that allows off-world teams to open the iris.
Teal'c activated his GDO
and so Hammond ordered the iris to be opened.
Proposed approach with title attribute
The GDO
is a device that allows off-world teams to open the iris.
Teal'c activated his GDO
and so Hammond ordered the iris to be opened.
Abbreviation and definition example
Current approach
The Zat, short for Zat'ni'catel, is a weapon made through a capacitance modulation of a phaser. Weaponry, in general, has long been an important export industry in this region.
Jack used a Zat to make the boxes of evidence disappear.
Proposed approach
The Zat, short for Zat'ni'catel, is a weapon made through a capacitance modulation of a phaser. Weaponry, in general, has long been an important export industry in this region.
Jack used a Zat to make the boxes of evidence disappear.
Definition Example (using title attribute)
Current approach
A fundamental class process
is a process of performing and appropriating surplus labor. It occurs at the point of production between a performer of surplus labor and the appropriator of that surplus labor.
… The fundamental class process is therefore a condition of existence for the subsumed class process. …
Proposed approach
A FCP is a process of performing and appropriating surplus labor. It occurs at the point of production between a performer of surplus labor and the appropriator of that surplus labor.
… The FCP is therefore a condition of existence for the subsumed class process. …
Definition with element contents
Current approach
A class is a a factory for objects. It defines all of the methods for accessing the instance variable data for an object as well as defining the constructor that stamps out new instances of the object. defined by the class.
For a class to be highly reusable, developers should focus
their attention on opportunities for polymorphism.
Proposed approach
A class is a a factory for objects. It defines all of the methods for accessing the instance variable data for an object as well as defining the constructor that stamps out new instances of the object. defined by the class.
For a class to be highly reusable, developers should focus
their attention on opportunities for polymorphism.
Adding type attribute
Example of type for a variable pointing to an element
In the following we treat myElement as always equal to the element returned by getElementByIdNS("myID", svg)..
Example of type for a variable pointing to an real number without type
Consider a circle with circumference x a real number… and circumscribe a circle with circumference y, also a real number. around …
versus
Consider a circle with circumference x… and circumscribe a circle with circumference y. around …