Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jQuery.print: add more common dom attributes

  • Loading branch information...
commit 7f0ac28c5bb88c68b9e4712feccb9a32c0b40e49 1 parent e8345cb
@tmm1 tmm1 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/jquery.print.js
View
7 lib/jquery.print.js
@@ -21,12 +21,15 @@
function print_element(obj){
if (obj.nodeType == 1) {
var result = []
- var properties = [ 'className', 'id' ]
+ var properties = [ 'id', 'className' ]
var extra = {
'input': ['type', 'name', 'value'],
'a': ['href', 'target'],
- 'form': ['method', 'action']
+ 'form': ['method', 'action'],
+ 'script': ['src'],
+ 'link': ['href'],
+ 'img': ['src']
}
$.each(properties.concat(extra[obj.tagName.toLowerCase()] || []), function(){
Please sign in to comment.
Something went wrong with that request. Please try again.