No subject


Fri Mar 7 15:32:22 PST 2014


"The user agent must act such that the typeof operator in JavaScript returns the string undefined when applied to the object returned for all."

-- 
You are receiving this mail because:
You are the assignee for the bug.
--1417448404.fD8f10.31001
Date: Mon, 1 Dec 2014 07:40:04 -0800
MIME-Version: 1.0
Content-Type: text/html

<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - document.all can be both 'function' and 'not function'"
   href="https://bugs.webkit.org/show_bug.cgi?id=139129">139129</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>document.all can be both 'function' and 'not function'
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zimbabao&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>typeof document.all === 'function' return true 
and 
var type = typeof document.all;
type === 'function' will return false.

So if you combine two statements or keep them separate they return different answer.

This is happening because document.all is returned to be CallTypeHost.



More information about the webkit-unassigned mailing list