Clipmarks

introducing clip-to-blog

The easiest way to blog the interesting things you find on the web.
Supports Blogger, Wordpress, Typepad, Live Journal, Movable Type, and Vox.  learn more»
 
 
Post this to your blog
Blog Type:
Blog Username:
Blog Password:
Blog Url:
XML-RPC Url:
Copy and Paste the following code into a new blog post...
Login or Sign Up to save your blog settings.
Title of Post:
Remarks for Post:BBCode  No HTML 
 
 
 
See also:    Email it to friends
Clip Preview:
clipped from tobielangel.com

I've had this article in mind for a while, as I have fiddling with Internet Explorer's crazy handling of attributes in order to patch Prototype's $$() utility.

Well, fiddling wasn't cutting the deal, so I ended up doing some large scale testing (basically running thousands of test using a sample HTML 4.01 document from W3C) to try to figure out what was going on.

element.foo === element.getAttribute('foo')

Obviously, that is a completely broken implementation, as getAttribute('foo') is supposed to return the attribute as set in the document, not the corresponding DOM element's attribute.

To exemplify:

<a href="http://tobielangel.com/index.html" onclick="alert('Back home!')">Home</a>
element.getAttribute('href');
// -> "http://tobielangel.com/index.html" in IE
// -> "/index.html" in well behaved browsers

If you read Internet Explorer's online documentation, you'll notice that it's implementation of getAttribute() is a bit particular, as it takes a second optional argument called an iFlag.

 blog it

style options...

Include Clip before or after Remarks  
Customize Clip Colors
Border Background Font
Select Border Color
Select Background Color
Select Font Color
Video Size
If you are clipping video to your blog, and it is too wide, select this option.
Clipmarks Logo and Link
If you chose not to have the Clipmarks logo and link in this blog post, select "Don't include" here.
Line Breaks (Advanced)
If your blog software is configured to automatically convert new lines into HTML, select "Don't format" here to prevent Clipmarks from doing so.
Styles (Advanced)
By default, Clipmarks uses inline styles to format content in your blog post. If you would like to prevent this styling and customize the css rules yourself, select this option and copy this stylesheet into your blog template.