hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Aha, Notice the Expando Which Precludes #

by why in cult

Mark Pilgrim: The UNSELECTABLE attribute is implemented as an expando. Setting the expando property of the document object to false precludes the functionality of all expandos.

Kxxxx, oh when the jargon on MSDN hits stride and blossoms into complete psychedelia.

Someone please assemble a Wikipedia page for this rare bird. I want creators’ bios. I want the original legal pads. I want pronunciation mp3s. GO!!

said on

Is the point of this exercise to demonstrate how much you love the word expando? I can’t disagree with the fact that it is a good one. Nevertheless, your use of expando in this situation seems irrelevant to all browsers. For that, I commend you.

said on

so in IE, the expando is not itself an expando?

said on

If you set document.expando=false, IE will preclude the functionality of allowing unstationary to be set. Firefox precludes the preclusion of this functionality even with expando disabled. The W3C is crying now just like the Shoshone do when you throw an empty Yoohoo bottle on the ground.

said on

I think expando is a great name for a function, but maybe not so great as a property. It seems to me like it needs to DO something itself.

There ought to be a place for it at the top of every Type or Object hierarchy.

So, let’s say, what does Object.new.expando do?

said on

I disagree, the expando totally DOES something. Namely, it precludes other expandos.

said on

http://www.mozilla.org/newlayout/demo/expando.html

said on

Try setting document.expando=false in the global scope. It not only precludes the unselected attribute from being set, but also every other “arbitrary” attribute. The unselected attribute is affected by document.expando=false in the same way a user-defined attribute such as “unstationary”. Try this example in IE with expando set to false, and then set to true for clarification.


<html>
<head>
<script>
document.expando= true;
window.onload = function() {
  alert(document.body.getAttribute("unstationary"))
  alert(document.body.getAttribute("id"))
}
</script>
</head>
<body id="unstationary" unstationary="on"></body>
</html>

said on
said on

Expando. Every programming term sounds like English, everyone knows why. Concept of expando is rather complicated, not to say irrational, psychedelic etc. It’s funny because it complicates meaning of 1/0, true/false and other binary thingies. So the best thing to do is to name it “EXPANDO” because it doesn’t sound as English at all. Spanish? Maybe.

said on

Handwritten code is so pretty… can someone write a compiler that takes image files? :)

said on

Totally Spanish. Expando == I expand.

said on

I can hardly wait for the document.mondo property to be added. Think of the possibililties!

said on

Daniel: Well, there’s piet

said on

I just tried http://www.mozilla.org/newlayout/demo/expando.html and it is almost exactly to the beat of the music I’m listening to.

Creepy stuff!

said on

Uh … just a small js thing … when comparing with undefined, you should use === instead.

said on

said on

sigh, my love was cleansed. it was an ascii heart. the beauty of which you may never see, now. damnable software.

said on

turns out i was forced to disable ascii hearts on this blog due to rampant fanboyism. you’ll have to circumvent that restriction by resorting to the slightly more dated ascii: I LOVE YOU .

said on

said on DD Mon YYYY at HH:MM

* do fancy stuff in your comment.

PREVIEW PANE