Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
renderjs
Commits
bd0024ff
Commit
bd0024ff
authored
Nov 19, 2014
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Document.prototype.contains in IE
parent
e227ad26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Gruntfile.js
Gruntfile.js
+1
-0
lib/iefix/doccontains.js
lib/iefix/doccontains.js
+8
-0
No files found.
Gruntfile.js
View file @
bd0024ff
...
...
@@ -99,6 +99,7 @@ module.exports = function (grunt) {
dist
:
{
src
:
[
'
<%= curl.jschannel.dest %>
'
,
'
<%= curl.domparser.dest %>
'
,
'
lib/iefix/*.js
'
,
'
renderjs.js
'
],
dest
:
'
dist/<%= pkg.name %>-<%= pkg.version %>.js
'
}
...
...
lib/iefix/doccontains.js
0 → 100644
View file @
bd0024ff
// IE does not support have Document.prototype.contains.
if
(
typeof
document
.
contains
!==
'
function
'
)
{
Document
.
prototype
.
contains
=
function
(
node
)
{
if
(
node
===
this
||
node
.
parentNode
===
this
)
return
true
;
return
this
.
documentElement
.
contains
(
node
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment