Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ jQuery.extend({

} else {

ret = elem.getAttribute( name );
// IE7 hits domain violation on iframe.getAttribute so pass null instead.
ret = elem.nodeName !== 'IFRAME' && elem.getAttribute( name ) || null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use double quotes


// Non-existent attributes return null, we normalize to undefined
return ret === null ?
Expand Down