The words used in the breadcrumb are taken from the contents
of the <title>
if one is present.
If it is not present, or is empty (does not contain any
alphanumeric characters) then the first <h1>
is
used. If the <h1>
is missing
or empty, the name of the resource is used and converted from
camel-case into properly spaced words.
The reason for preferring the <title>
is that
it is usually written in a more concise way - more suitable for breadcrumbs -
than the first level heading.
Resource Name | Content | Expected Breadcrumb Text |
---|---|---|
MyResource.html | <html> <head> <title>Concise Name</title> </head> <body> <h1>A Slightly Longer Name</h1> </body> </html> |
Concise Name |
MyResource.html | <html> <body> <h1>A Slightly Longer Name</h1> </body> </html> |
A Slightly Longer Name |
MyResource.html | <html> <body> <h1>A Slightly Longer Name</h1> <h1>Another Long Name</h1> </body> </html> |
A Slightly Longer Name |
MyResource.html | <html> <body> <h1> </h1> <h1>Another Long Name</h1> </body> </html> |
Another Long Name |
MyResource.html | <html> <body> <h1> </h1> </body> </html> |
My Resource |
MyCamelCaseResource.html | <html /> |
My Camel Case Resource |