-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Added the data-page-number dom attribute to the page rendered in the browser #5881
Conversation
Looks good. Fixes #5766. I do wonder though: now that we have this, do we still need the ID for every container (i.e., |
@timvandermeij we don't need it... unless somebody already started using/parsing it |
is that not used anywhere within the library itself? |
I don't think so, it was just carried from demo viewer created at c828fdd |
Personally I think it is best to encourage developers to start using |
Let's remove |
Okay good. Cause I already removed it and pushing the code. |
Found pageContainer usage at http://mxr.mozilla.org/mozilla-central/source/browser/extensions/pdfjs/test/browser_pdfjs_zoom.js , if we going to land this we need to change the test in m-c too |
@yurydelendik So that is currently located here https://github.com/mozilla/gecko-dev/blob/master/browser/extensions/pdfjs/test/browser_pdfjs_zoom.js#L112 on GitHub. It that the repo that I should change? |
let's remove the latter change from this pr and open different issue to fix test first |
@mbbaig Could you change the commit such that only https://github.com/mbbaig/pdf.js/commit/9643750f02770ff6dbff0e0d8e13140fa7dc5a40#diff-c880b70cf7d6b97863eeb665a736c4baR82 remains? Maybe it's easiest to add back https://github.com/mbbaig/pdf.js/commit/9643750f02770ff6dbff0e0d8e13140fa7dc5a40#diff-c880b70cf7d6b97863eeb665a736c4baL79 and then squash the commits. With only the |
…browser Added data-page-id attribute to page container divs Updated the attribute with a better label
I added the 'id' tag back so it can be associated with a different issue. The commits have also been cleaned up to only show the required addition. |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/bc360a5ef3d875e/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/bc360a5ef3d875e/output.txt Total script time: 0.79 mins Published |
Added the data-page-number dom attribute to the page rendered in the browser
Thank you for the patch! |
Added data-page-id attribute to page container divs
Updated the attribute with a better label