Skip to content

Commit

Permalink
Merge pull request Automattic#76 from 2is10/xhtml_compatibility
Browse files Browse the repository at this point in the history
closing <div> tags to avoid .innerHTML JS errors on XHTML pages
  • Loading branch information
rauchg committed Jan 18, 2014
2 parents 073c8a2 + d05f0ce commit fa3f81d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions antiscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
*/

Scrollbar.Horizontal = function (pane) {
this.el = $('<div class="antiscroll-scrollbar antiscroll-scrollbar-horizontal">', pane.el);
this.el = $('<div class="antiscroll-scrollbar antiscroll-scrollbar-horizontal"/>', pane.el);
Scrollbar.call(this, pane);
};

Expand Down Expand Up @@ -356,7 +356,7 @@
*/

Scrollbar.Vertical = function (pane) {
this.el = $('<div class="antiscroll-scrollbar antiscroll-scrollbar-vertical">', pane.el);
this.el = $('<div class="antiscroll-scrollbar antiscroll-scrollbar-vertical"/>', pane.el);
Scrollbar.call(this, pane);
};

Expand Down Expand Up @@ -453,7 +453,7 @@
if (size === undefined) {
var div = $(
'<div class="antiscroll-inner" style="width:50px;height:50px;overflow-y:scroll;'
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%">'
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%"/>'
+ '</div>'
);

Expand Down

0 comments on commit fa3f81d

Please sign in to comment.