Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
07798787
Commit
07798787
authored
Jul 24, 2012
by
Elijah Manor
Committed by
Dave Methvin
Jul 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #12132. IE10 dislikes detached object elements. Close gh-870.
parent
91dfb28d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
manipulation.js
src/manipulation.js
+5
-4
No files found.
src/manipulation.js
View file @
07798787
...
@@ -436,11 +436,12 @@ function cloneFixAttributes( src, dest ) {
...
@@ -436,11 +436,12 @@ function cloneFixAttributes( src, dest ) {
nodeName
=
dest
.
nodeName
.
toLowerCase
();
nodeName
=
dest
.
nodeName
.
toLowerCase
();
// IE6-8 fail to clone children inside object elements that use
// the proprietary classid attribute value (rather than the type
// attribute) to identify the type of content to display
if
(
nodeName
===
"object"
)
{
if
(
nodeName
===
"object"
)
{
dest
.
outerHTML
=
src
.
outerHTML
;
// IE6-10 improperly clones children of object elements using classid.
// IE10 throws NoModificationAllowedError if parent is null, #12132.
if
(
dest
.
parentNode
)
{
dest
.
outerHTML
=
src
.
outerHTML
;
}
// This path appears unavoidable for IE9. When cloning an object
// This path appears unavoidable for IE9. When cloning an object
// element in IE9, the outerHTML strategy above is not sufficient.
// element in IE9, the outerHTML strategy above is not sufficient.
...
...
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