<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Prototype JavaScript framework - Element.Methods.Simulated</title>
  <id>tag:prototypejs.org.,2008:mephisto/api/element/methods/simulated</id>
  <generator uri="http://mephistoblog.com" version="0.7.3">Mephisto Noh-Varr</generator>
  <link href="http://prototypejs.org./feed/api/element/methods/simulated/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="http://prototypejs.org./api/element/methods/simulated" rel="alternate" type="text/html"/>
  <updated>2007-01-16T02:04:00Z</updated>
  <entry xml:base="http://prototypejs.org./">
    <author>
      <name>Tobie</name>
    </author>
    <id>tag:prototypejs.org.,2007-01-16:13071</id>
    <published>2007-01-16T01:58:00Z</published>
    <updated>2007-01-16T02:04:00Z</updated>
    <category term="Element.Methods.Simulated"/>
    <link href="http://prototypejs.org./api/element/methods/simulated" rel="alternate" type="text/html"/>
    <title>Element.Methods.Simulated</title>
<content type="html">
            &lt;p&gt;&lt;code&gt;Element.Methods.Simulated&lt;/code&gt; allows simulating missing HTMLElement methods in non standard compliant browsers which you can then call on &lt;a href=&quot;/api/element/extend&quot;&gt;extended&lt;/a&gt; elements just as if the browser vendor had suddenly decided to implement them.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://prototypejs.org./">
    <author>
      <name>Tobie</name>
    </author>
    <id>tag:prototypejs.org.,2007-01-16:13070</id>
    <published>2007-01-16T01:56:00Z</published>
    <updated>2007-01-16T02:13:07Z</updated>
    <category term="Element.Methods.Simulated"/>
    <category term="simulated"/>
    <link href="http://prototypejs.org./api/element/methods/simulated/hasattribute" rel="alternate" type="text/html"/>
    <title>hasAttribute</title>
<summary type="html">&lt;pre&gt;&lt;code class=&quot;ebnf&quot;&gt;hasAttribute(element, attribute) -&gt; Boolean&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Simulates the standard compliant DOM method &lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-ElHasAttr&quot;&gt;&lt;code&gt;hasAttribute&lt;/code&gt;&lt;/a&gt; for browsers missing it (Internet Explorer 6 and 7).&lt;/p&gt;</summary><content type="html">
            &lt;pre&gt;&lt;code class=&quot;ebnf&quot;&gt;hasAttribute(element, attribute) -&gt; Boolean&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Simulates the standard compliant DOM method &lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-ElHasAttr&quot;&gt;&lt;code&gt;hasAttribute&lt;/code&gt;&lt;/a&gt; for browsers missing it (Internet Explorer 6 and 7).&lt;/p&gt;
&lt;h3&gt;Example&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;html&quot;&gt;
&amp;lt;a id=&quot;link&quot; href=&quot;http://prototypejs.org&quot;&amp;gt;Prototype&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;javascript&quot;&gt;
$('link').hasAttribute('href');
// -&gt; true
&lt;/code&gt;&lt;/pre&gt;
          </content>  </entry>
</feed>
