print-html-element icon indicating copy to clipboard operation
print-html-element copied to clipboard

Android >= 5.x w/ chrome cannot printElement

Open zivester opened this issue 8 years ago • 3 comments

Using the example pages, I cannot print any of the examples except the popup version. Tested on Chrome with Android 5.1, and Anroid 7.0.

They revert to printing the entire sources html instead of the target elements/html.

zivester avatar Jul 20 '16 18:07 zivester

Thanks for input. Currently print-html-element doesn't support mobile. Truthfully I haven't put much thought into the use case.

I just tested this on an iOS device as well now and it doesn't seem to be working at all. You get a blank page for all options.

I'll poke around a bit over the weekend - if it turns out to be a quick fix, then I'll push a new release then. Otherwise I'm marking this issue as a feature request and will definitely keep this in mind going forward.

In the mean time, feel free to play around with the code and submit a PR if you think you can get it working!

rpdasilva avatar Jul 22 '16 00:07 rpdasilva

Definitely going to take a look when I have some time, and thanks for the prompt response!

zivester avatar Jul 22 '16 00:07 zivester

#15 doesn't seem to be a fix for me for Android. The problem with Android may be with my input, as I'm giving it complete markup (starting from <html> and then print-html-element is injecting its own wrapper around it. I'll address this in #14 after I do a bit more digging, and maybe add a bit more intelligence into the html generation in _getMarkup().

zivester avatar Oct 04 '16 19:10 zivester