📃 March 2008 release notes
New in Safari
The following features are now available in Safari:
-
attr() (content only):
The
attr()CSS function, incontentproperty declarations, sets a::beforeor::afterpseudo-element's content to the value of the specified HTML attribute. -
<audio>:
The
<audio>element plays sound such as audio effects or music, optionally with controls provided by the browser. -
:empty:
The
:emptyCSS pseudo-class matches elements without child elements. -
Focus events:
Focus events, such as
focusandblur, fire when an element gets or loses focus. -
input (event):
The
inputevent fires when a form control changes or an element with thecontenteditableattribute changes. -
<input type="range">:
The
<input type="range">element represents a slider for choosing an inexact value between a minimum and maximum value. -
Input selectors:
The
:checked,:disabled, and:enabledCSS pseudo-classes match form elements based on their state. -
:lang():
The
:lang()CSS functional pseudo-class matches elements based on their content language. -
:nth-child():
The
:nth-child()and:nth-last-child()CSS functional pseudo-classes match elements based on their index within a list of elements. The:first-childand:last-childpseudo-classes match the first and last element in a list, and the:only-childpseudo-class matches an element with no siblings. -
:nth-of-type() pseudo-classes:
The
:nth-of-type()and:nth-last-of-type()CSS functional pseudo-classes match elements based on their position among siblings of the same type. The:first-of-type,:last-of-type, and:only-of-typepseudo-classes match the first, last, and only elements of its type. -
RegExp compile():
The
compile()method ofRegExpobjects recompiles an existing regular expression object using a new pattern and flags. -
<source>:
The
<source>element sets a media resource for the<picture>,<video>, and<audio>elements. -
tabindex:
The
tabindexHTML attribute make an element focusable, and sets the element's relative ordering for sequential focus navigation. -
<video>:
The
<video>element plays videos or movies, optionally with controls provided by the browser. -
XSLT:
The
XSLTProcessorAPI transforms XML documents into new XML or HTML documents, using XSLT stylesheets. You can use XSLT to convert data between different XML schemas or to convert XML data into web pages or PDF documents. Also known as Extensible Stylesheet Language Transformations. -
zoom:
The
zoomCSS property scales the size of an element. Unlike thetransformproperty, a zoomed element affects page layout.