fix(dom) bug in Firefox with Imagus extension enabled: change getCurrentName to read from data-name instead of title (#313)

Separated out name generation/parsing logic.
Added test case.
This commit is contained in:
Jacob Henry 2021-01-18 13:42:31 -05:00 committed by coderaiser
parent b6f30d1ccb
commit c057b950c8
9 changed files with 122 additions and 25 deletions

View file

@ -5,7 +5,7 @@
<span data-name="js-date" class="date reduce-text">date</span>
<span data-name="js-owner" class="owner reduce-text">owner</span>
<span data-name="js-mode" class="mode reduce-text">mode</span>
</div><ul data-name="js-files" class="files"><li draggable="true" data-name="js-file-.." class="">
</div><ul data-name="js-files" class="files"><li draggable="true" data-name="js-file-Li4=" class="">
<span data-name="js-type" class="mini-icon directory"></span>
<span data-name="js-name" class="name reduce-text"><a href="/fs/etc" title=".." draggable="true">..</a></span>
<span data-name="js-size" class="size reduce-text">&lt;dir&gt;</span>