erikzaadi/jQueryPlugins — Issue #33: Series of problems I fixed in Chrome Printing (Just suggestions)
Author: JDMcKinstry
Created: 2011-12-28 18:05:28+00:00
State: open

I had a series of problems when printing my key element in Google Chrome.

The following is probably not the best fixes, but should be noticed by Author of this plug-in as possible areas to look for change.
I'll just go through and list them as I came across them and what I edited to fix them, however, i'm currently unaware how these changes might affect other browsers as we use "Chrome-Frame" for IE users and have not yet tested for FireFox and Safari Support (too many variables I have to change, so i'm putting it off for a minute {fyi: be very careful of names in custom objects in Safari, it's very picky})

### First problem was around line 169:
#### Problem: Css was not being included properlly because of slightly different props/attrs, so i just copied the html directly
#### Original Code:
```html.push('');```
#### MyFix: ```html.push($(this).clone().prop('outerHTML'));```
-
### Second Problem was around line 173:
#### Problem: Getting wrong base_url, I used my own get base url plugin $.myURL()
#### Original Code:
```html.push('');```
#### MyFix: ```html.push('');```
-
### Third Problem was around line 178:
#### Problem: Adding odd "undefined" div to outer of all printed html
#### Original Code:
```html.push('

' + elementHtml + '

');```
#### MyFix: ```html.push($element.clone().prop('innerHTML') );```
-