Longdesc Alternative: The details element.

Texas Roots

Photo Info Hide Photo Info

Photo details for "Texas Roots"

9-month-old Eli wearing his father's cowboy hat and a plaid button-up shirt.

Apple iPhone 5s back camera
4.12mm ƒ/2.2

EXIF Data Hide EXIF Data
JFIFVersion
1.01
X-Resolution
72 dpi
Y-Resolution
72 dpi
Make
Apple
Software
7.1
Date and Time
2014:04:12 15:06:20
ISO Speed
32
Exif Version
0221
Date and Time (Original)
2014:04:12 15:06:20
Date and Time (Digitized)
2014:04:12 15:06:20
Components Configuration
Y, Cb, Cr, -
Brightness Value
7.360852197
Metering Mode
Spot
Subject Area
1342 785 610 612
Sub Sec Time Original
953
Sub Sec Time Digitized
953
Flashpix Version
0100
Color Space
sRGB
Sensing Method
One-chip color area
Scene Type
Directly photographed
Exposure Mode
Auto
White Balance
Auto
Focal Length (35mm format)
30 mm
Scene Capture Type
Standard
Lens Info
4.12mm f/2.2
Lens Make
Apple
Lens Model
iPhone 5s back camera 4.12mm f/2.2
XMPToolkit
XMP Core 5.4.0
Creator Tool
7.1
Region Applied To Dimensions H
2448
Region Applied To Dimensions W
3264
Region Applied To Dimensions Unit
pixel
Region Extensions Time Stamp
2147483647
Region Extensions Face ID
2
Region Extensions Confidence Level
358
Region Extensions Angle Info Yaw
0
Region Extensions Angle Info Roll
270
Region Area Y
0.443423
Region Area W
0.209252
Region Area Unit
normalized
Region Area X
0.467065
Region Area H
0.279003
Region Type
Face
Camera ID
72157631630773540
Camera Type
Cameraphone
9-month-old Eli wearing his father's cowboy hat and a plaid button-up shirt.

The caption of the figure above includes a details element that natively exposes additional details about the photo. It is accessible with a mouse click or key press on the "Photo Info" summary button. There is some custom CSS styling applied, but no JavaScript is required. Note: At the time of this writing, the collapsing functionality of the details element is natively supported in Safari and Chrome. A JavaScript polyfill is used to retrofit other browsers (including Firefox and Internet Explorer) until they get native support.

Note: The polyfill script is a proof-of-concept and not intended for widespread use. A few people have written in stating this example doesn't work in some older browsers (IE 8 and Safari 5; both are 4 major versions out-of-date). I don't intend to update the polyfill to account for these browsers, but the proof-of-concept is sound, and could be backported to use classes instead of attribute selectors and attachEvent instead of addEventListener.

Back to the longdesc alternatives list. Image source: Texas Roots on flickr.

This page was last updated 13 August 2014.