aria-api

access ARIA information from JavaScript
git clone https://git.ce9e.org/aria-api.git

commit
f5c9394abea83a77d554a2b02bea59698dc5fdbb
parent
03cc5e801681222a92369edc5504fbb07097d039
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-01-08 07:12
hack: add whitespace to fix some WPT tests

Diffstat

M lib/name.js 6 ++++++

1 files changed, 6 insertions, 0 deletions


diff --git a/lib/name.js b/lib/name.js

@@ -153,6 +153,12 @@ var getName = function(el, recursive, visited, directReference) {
  153   153 		ret = el.title || '';
  154   154 	}
  155   155 
   -1   156 	// FIXME: not exactly sure about this, but it reduces the number of failing
   -1   157 	// WPT tests. Whitespace is hard.
   -1   158 	if (!ret.trim()) {
   -1   159 		ret = ' ';
   -1   160 	}
   -1   161 
  156   162 	var before = getPseudoContent(el, ':before');
  157   163 	var after = getPseudoContent(el, ':after');
  158   164 	return before + ret + after;