Cross Reference: node-ie.js
xref
: /
yui3
/
build
/
io
/
io-base-min.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
node-ie.js revision 907f4e71cd1e65d111223151e71b36b56ae17787
if
(!
document
.
documentElement
.
hasAttribute
) {
// IE < 8
Y.
Node
.
prototype
.
hasAttribute
=
function
(
attr
) {
return
Y.
DOM
.
getAttribute
(
this
.
_node
,
attr
) !==
''
;
};
}
// IE throws error when setting input.type = 'hidden',
// input.setAttribute('type', 'hidden') and input.attributes.type.value = 'hidden'
Y.
Node
.
ATTRS
.
type
= {
setter
:
function
(
val
) {
if
(
val
===
'hidden'
) {
try
{
this
.
_node
.
type
=
'hidden'
;
}
catch
(e) {
this
.
_node
.
style
.
display
=
'none'
;
}
}
return
val
;
}
};