<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 - [TreatNullAs=NullString] should be renamed to [TreatNullAs=EmptyString] to match Web IDL"
   href="https://bugs.webkit.org/show_bug.cgi?id=154654">154654</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[TreatNullAs=NullString] should be renamed to [TreatNullAs=EmptyString] to match Web IDL
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

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

        <tr>
          <th>URL</th>
          <td>http://heycam.github.io/webidl/#TreatNullAs
          </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>Bindings
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cdumez&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>darin&#64;apple.com, sam&#64;webkit.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>[TreatNullAs=NullString] should be renamed to [TreatNullAs=EmptyString] to match Web IDL:
<a href="http://heycam.github.io/webidl/#TreatNullAs">http://heycam.github.io/webidl/#TreatNullAs</a>

The current WebKit behavior is the same as the IDL one [1], only the naming differs. We should align.

Note that [TreatNullAs=EmptyString] is a standard WebIDL extended attribute and is used in specifications. WebKit normally uses it in cases where the specification has it. However, WebKit also uses [TreatNullAs=NullString, TreatUndefined=NullString] for attributes / parameters that should actually be nullable. This is because support for nullable in our bindings generator is currently weak / incomplete. We should eventually use nullable (e.g. DOMString? value) [2] instead of [TreatNullAs=NullString, TreatUndefined=NullString] for those cases but this is a separate issue. Note that [TreatUndefined=XXX] is no longer part of Web IDL and should be dropped entirely once we better support nullable.

[1] <a href="http://heycam.github.io/webidl/#es-DOMString">http://heycam.github.io/webidl/#es-DOMString</a>
[2] <a href="http://heycam.github.io/webidl/#idl-nullable-type">http://heycam.github.io/webidl/#idl-nullable-type</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>