-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
github: "Sorry, Copytables was unable to copy this table." and copied to clipboard in wrong format #13
Comments
breakpoint in background page 'function copyCommand':
Scope: Local |
M.table.prototype.initTable returns false but it is very difficult to track down which step, due to minification |
at this time, background page DOM contains: <script src="background.js"></script> <iframe sandbox="allow-same-origin"></iframe> |
and iframe: <style type="text/css">td { min-width: 1px; }</style> |
console: |
fresh run, to be sure: p.content() so I think there is some fault in copying data from target page to background page |
ah, here is content of background page dom after at this point in time:
|
ah, right, this line fails:
because there is no |
on a different URL (https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus), I am able to successfully copy a table and here is the div content:
|
tried forcing " |
try to copy a smaller table on the same page (first table), still doesn't work |
it appears that without this github css, it is newly possible to copy: there are many references to user-select in it |
commented out all the 'user-select' styles, still no work |
the problem appears to be this style:
tables with display:block are incorrectly copied to the clipboard |
workaround for users: right-click on table > inspect element > edit |
https://github.com/twhitehead/notes-obd2elm327edb#extended-pids
trying to copy the table:
PID#-b* | ACRONYM | DESCRIPTION | UNITS
with Copytables 0.5.9
able to select the table, Infobox appears,
right-click > Table... > Select Table
table becomes blue
right-click > Table > Copy... > CSV
now Devtools console has:
content.js:1 Sorry, Copytables was unable to copy this table.
endCopyFailed @ content.js:1
(anonymous) @ content.js:1
but there is some data on clipboard, but wrong format:
PID#-b* ACRONYM DESCRIPTION UNITS
1104-b1 ARC Automatic Ride Control ON/OFF
1101-b0 ACCS Air Conditioning Cycling Switch ON/OFF
1102-b0 ACP A/C Head Pressure Sensor (Fan Ctrl OPEN/CLOSED
...
The text was updated successfully, but these errors were encountered: