📃 July 2008 release notes
New in Safari on iOS
The following features are now available in Safari on iOS:
-
attr() (content only):
The
attr()CSS function, incontentproperty declarations, sets a::beforeor::afterpseudo-element's content to the value of the specified HTML attribute. -
<base>:
The
<base>element sets the base URL (the URL that relative URLs are relative to) for all relative URLs in the document. -
Change event:
The
changeevent for<input>,<select>, and<textarea>elements fires when the user modifies the element's value. Unlike theinputevent, the change event does not necessarily fire on every alteration to an element's value. -
: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. -
<form>:
The
<form>element contains interactive controls for submitting information. -
input (event):
The
inputevent fires when a form control changes or an element with thecontenteditableattribute changes. -
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. -
<object>:
The
<object>element represents an external resource such as a PDF or SVG document. It was historically used for plugins such as Shockwave Flash. -
<q>:
The
<q>element represents a short inline quotation. -
RegExp compile():
The
compile()method ofRegExpobjects recompiles an existing regular expression object using a new pattern and flags. -
<script> and <noscript>:
The
<script>element contains or loads data or executable code. This is typically used to load JavaScript code. The<noscript>element represents alternative content to show when scripting is not allowed. -
<source>:
The
<source>element sets a media resource for the<picture>,<video>, and<audio>elements. -
SVG:
The SVG image format, represented by the
<svg>element, creates two-dimensional vector graphics with declarative or scripted interaction and animation. -
tabindex:
The
tabindexHTML attribute make an element focusable, and sets the element's relative ordering for sequential focus navigation. -
:target:
The
:targetCSS pseudo-class matches the element with an ID matching the URL fragment. -
Text stroke and fill (compatibility prefixes):
The
-webkit-text-stroke-widthand-webkit-text-stroke-colorCSS properties set the thickness and color of text outlines. The-webkit-text-fill-colorsets the color within text character outlines. Both default to the text color. -
word-break: break-word:
The
word-break: break-wordCSS declaration sets word breaks to occur according to their customary rules. Superseded byoverflow-wrap: anywhere. -
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.