Commits

Geoffrey Sneddon committed 705bff7

@title would only be used if it exists.

Comments (0)

Files changed (2)

 </p><ol>
 	<li>If the element already has an <code>id</code> attribute, its value is
 used, and this algorithm stops; otherwise:
-	</li><li>If the <code>title</code> attribute's value is not empty, and does not
-consist of <a href=#whitespace>whitespace</a> only, let <var>generated_id</var> be equal to
-its value; otherwise, let <var>generated_id</var> be equal to
-<a href=#textcontent>textContent</a>.
+	</li><li>If the <code>title</code> attribute is present and its value is not
+empty and does not consist of <a href=#whitespace>whitespace</a> only, let
+<var>generated_id</var> be equal to its value; otherwise, let
+<var>generated_id</var> be equal to <a href=#textcontent>textContent</a>.
 	</li><li>The <var>generated_id</var> is stripped of leading/trailing
 <a href=#whitespace>whitespace</a> and converted to lowercase (behaviour of this is
 dependent on the current locale setting of Python).
 <ol>
 	<li>If the element already has an <code>id</code> attribute, its value is
 used, and this algorithm stops; otherwise:
-	<li>If the <code>title</code> attribute's value is not empty, and does not
-consist of <span>whitespace</span> only, let <var>generated_id</var> be equal to
-its value; otherwise, let <var>generated_id</var> be equal to
-<span>textContent</span>.
+	<li>If the <code>title</code> attribute is present and its value is not
+empty and does not consist of <span>whitespace</span> only, let
+<var>generated_id</var> be equal to its value; otherwise, let
+<var>generated_id</var> be equal to <span>textContent</span>.
 	<li>The <var>generated_id</var> is stripped of leading/trailing
 <span>whitespace</span> and converted to lowercase (behaviour of this is
 dependent on the current locale setting of Python).
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.