mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 16:44:57 -05:00
First proposed solution for IE6/7 get/setAttribute quirks. Needs more testing, but solves some issues
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
var div = document.createElement("div");
|
||||
|
||||
div.style.display = "none";
|
||||
div.setAttribute("className", "t");
|
||||
div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
||||
|
||||
|
||||
var all = div.getElementsByTagName("*"),
|
||||
a = div.getElementsByTagName("a")[0],
|
||||
select = document.createElement("select"),
|
||||
@@ -58,6 +59,8 @@
|
||||
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
|
||||
optSelected: opt.selected,
|
||||
|
||||
attrFix: div.getAttribute("className") === "t",
|
||||
|
||||
// Will be defined later
|
||||
deleteExpando: true,
|
||||
optDisabled: false,
|
||||
|
||||
Reference in New Issue
Block a user