Changeset 63400
- Timestamp:
- 08/30/2026 10:31:20 PM (25 hours ago)
- File:
-
- 1 edited
-
trunk/src/js/_enqueues/lib/embed-template.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/embed-template.js
r52132 r63400 157 157 */ 158 158 function linkClickHandler( e ) { 159 var target = e.target, 160 href; 161 if ( target.hasAttribute( 'href' ) ) { 162 href = target.getAttribute( 'href' ); 163 } else { 164 href = target.parentElement.getAttribute( 'href' ); 165 } 159 /* 160 * The href property resolves to an absolute URL, which the parent window requires. 161 * Elements whose href is not a string, such as SVG anchors, are skipped. 162 */ 163 var link = e.target.closest( '[href]' ), 164 href = 'string' === typeof link?.href ? link.href : null; 166 165 167 166 // Only catch clicks from the primary mouse button, without any modifiers.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)