<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27603</bug_id>
          
          <creation_ts>2009-07-23 03:04:41 -0700</creation_ts>
          <short_desc>updating Document.idl to match HTML5 spec: domain read-write and access to getSelection</short_desc>
          <delta_ts>2010-06-10 18:44:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Luke Kenneth Casson Leighton">lkcl</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>134071</commentid>
    <comment_count>0</comment_count>
    <who name="Luke Kenneth Casson Leighton">lkcl</who>
    <bug_when>2009-07-23 03:04:41 -0700</bug_when>
    <thetext>carrying on from discussion in https://bugs.webkit.org/show_bug.cgi?id=27434 comment https://bugs.webkit.org/show_bug.cgi?id=27434#c3 suggests that the domain property be made read-write and that access to getSelection be made universal to all bindings, to match the HTML5 specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134072</commentid>
    <comment_count>1</comment_count>
      <attachid>33323</attachid>
    <who name="Luke Kenneth Casson Leighton">lkcl</who>
    <bug_when>2009-07-23 03:17:43 -0700</bug_when>
    <thetext>Created attachment 33323
makes Document.domain read-write and adds Document.getSelection to all bindings, as per HTML5 spec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134133</commentid>
    <comment_count>2</comment_count>
      <attachid>33323</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-07-23 09:50:53 -0700</bug_when>
    <thetext>Comment on attachment 33323
makes Document.domain read-write and adds Document.getSelection to all bindings, as per HTML5 spec

&gt;  #if defined(LANGUAGE_JAVASCRIPT) &amp;&amp; LANGUAGE_JAVASCRIPT
&gt;                   attribute [ConvertNullToNullString] DOMString domain;
&gt;  #else
&gt; -        readonly attribute DOMString domain;
&gt; +        attribute DOMString domain;
&gt;  #endif

It doesn&apos;t seem necessary to have this be #if&apos;d any more.

&gt; +        // now in HTML5 specification
&gt; +        DOMSelection       getSelection();

The comment doesn&apos;t add anything.

&gt; +2009-07-22  lkcl &lt;lkcl@lkcl.net&gt;
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!)
&gt; +
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=27603
&gt; +
&gt; +		https://bugs.webkit.org/show_bug.cgi?id=27434#c3 suggests that the
&gt; +		domain property be made read-write and that access to getSelection be
&gt; +		made universal to all bindings, to match the HTML5 specification.
&gt; +
&gt; +        * dom/Document.idl: updated to match HTML spec on domain and getSelection

Your ChangeLog entry again contains tabs that will make our pre-commit hook unhappy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134274</commentid>
    <comment_count>3</comment_count>
    <who name="Luke Kenneth Casson Leighton">lkcl</who>
    <bug_when>2009-07-23 15:06:36 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 33323 [details])
&gt; &gt;  #if defined(LANGUAGE_JAVASCRIPT) &amp;&amp; LANGUAGE_JAVASCRIPT
&gt; &gt;                   attribute [ConvertNullToNullString] DOMString domain;
&gt; &gt;  #else
&gt; &gt; -        readonly attribute DOMString domain;
&gt; &gt; +        attribute DOMString domain;
&gt; &gt;  #endif
&gt; 
&gt; It doesn&apos;t seem necessary to have this be #if&apos;d any more.

 ah... oh?  oh, what, because the [ConvertNullToNullString] gets ignored by bindings generators that don&apos;t need it?  oh, ok.  great.  less code!

&gt; &gt; +        // now in HTML5 specification
&gt; &gt; +        DOMSelection       getSelection();
&gt; 
&gt; The comment doesn&apos;t add anything.

 oh, ok.  just trying to be helpful.

&gt; &gt; +2009-07-22  lkcl &lt;lkcl@lkcl.net&gt;
&gt; &gt; +
&gt; &gt; +        Reviewed by NOBODY (OOPS!)
&gt; &gt; +
&gt; &gt; +        https://bugs.webkit.org/show_bug.cgi?id=27603
&gt; &gt; +
&gt; &gt; +		https://bugs.webkit.org/show_bug.cgi?id=27434#c3 suggests that the
&gt; &gt; +		domain property be made read-write and that access to getSelection be
&gt; &gt; +		made universal to all bindings, to match the HTML5 specification.
&gt; &gt; +
&gt; &gt; +        * dom/Document.idl: updated to match HTML spec on domain and getSelection
&gt; 
&gt; Your ChangeLog entry again contains tabs that will make our pre-commit hook
&gt; unhappy.

 achhh, yes, that&apos;s vi messing up (ok - me messing up using vi) sorry.  now i know, i&apos;ve done s/^I/    /g but there may be a couple of entries still with tabs, i&apos;ll try to find them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134279</commentid>
    <comment_count>4</comment_count>
    <who name="Luke Kenneth Casson Leighton">lkcl</who>
    <bug_when>2009-07-23 15:14:02 -0700</bug_when>
    <thetext>&gt; &gt; +        // now in HTML5 specification
&gt; &gt; +        DOMSelection       getSelection();
&gt; 
&gt; The comment doesn&apos;t add anything.

 ahh, yes it does.  look carefully at the original file, and you
 can see that getSelection() _used_ to be commented
 as a &quot;Mozilla Extension&quot;.

 if you remove only the #ifdef, and don&apos;t provide a comment,
 it looks like getSelection() is an IE Extension (not an
 HTML5ism) because that&apos;s the commented-block above it.


        // IE extensions

                 attribute [ConvertNullStringTo=Undefined, ConvertNullToNullString] DOMString charset;
        readonly attribute [ConvertNullStringTo=Undefined] DOMString defaultCharset;
        readonly attribute [ConvertNullStringTo=Undefined] DOMString readyState;

        Element            elementFromPoint(in long x, in long y);

        // HTML 5
        DOMSelection       getSelection();

        // Mozilla extensions

        readonly attribute [ConvertNullStringTo=Null] DOMString characterSet;


 looking _further_ down the Document.idl file, you can see
 that there is in fact a comment &quot;// HTML 5&quot; already in there:

        // HTML 5
        NodeList getElementsByClassName(in DOMString tagname);


 so, anticipating that &quot;HTML 5&quot; is acceptable, because it&apos;s already
 _in_ the file, i&apos;m resubmitting a patch which contains the exact
 same comment &quot;HTML 5&quot;.

 the alternative is to move the function getSelection() to somewhere
 which would only confuse people.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>134286</commentid>
    <comment_count>5</comment_count>
      <attachid>33384</attachid>
    <who name="Luke Kenneth Casson Leighton">lkcl</who>
    <bug_when>2009-07-23 15:17:55 -0700</bug_when>
    <thetext>Created attachment 33384
removes JS-specificism around Document.domain; keeps comment on getSelection to avoid it being confused with IE block of properties, above, but makes comment same as is shown further down in file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137757</commentid>
    <comment_count>6</comment_count>
      <attachid>33384</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-08-06 20:18:00 -0700</bug_when>
    <thetext>Comment on attachment 33384
removes JS-specificism around Document.domain; keeps comment on getSelection to avoid it being confused with IE block of properties, above, but makes comment same as is shown further down in file

I believe getSelection is intentionally avoided for Obj-C bindings, but I&quot;m not sure.  Please have an Apple person, like Mark Rowe or Tim Hatcher comment as to if this change is correct or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138528</commentid>
    <comment_count>7</comment_count>
      <attachid>33384</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-08-09 08:54:49 -0700</bug_when>
    <thetext>Comment on attachment 33384
removes JS-specificism around Document.domain; keeps comment on getSelection to avoid it being confused with IE block of properties, above, but makes comment same as is shown further down in file

Removing my review.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>33323</attachid>
            <date>2009-07-23 03:17:43 -0700</date>
            <delta_ts>2009-07-23 15:17:55 -0700</delta_ts>
            <desc>makes Document.domain read-write and adds Document.getSelection to all bindings, as per HTML5 spec</desc>
            <filename>doc.html5.idl.patch</filename>
            <type>text/plain</type>
            <size>1711</size>
            <attacher name="Luke Kenneth Casson Leighton">lkcl</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvZG9tL0RvY3VtZW50LmlkbAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJDb3JlL2Rv
bS9Eb2N1bWVudC5pZGwJKHJldmlzaW9uIDQ0NDczKQorKysgV2ViQ29yZS9kb20vRG9jdW1lbnQu
aWRsCSh3b3JraW5nIGNvcHkpCkBAIC0xNTcsNyArMTU3LDcgQEAKICNpZiBkZWZpbmVkKExBTkdV
QUdFX0pBVkFTQ1JJUFQpICYmIExBTkdVQUdFX0pBVkFTQ1JJUFQKICAgICAgICAgICAgICAgICAg
YXR0cmlidXRlIFtDb252ZXJ0TnVsbFRvTnVsbFN0cmluZ10gRE9NU3RyaW5nIGRvbWFpbjsKICNl
bHNlCi0gICAgICAgIHJlYWRvbmx5IGF0dHJpYnV0ZSBET01TdHJpbmcgZG9tYWluOworICAgICAg
ICBhdHRyaWJ1dGUgRE9NU3RyaW5nIGRvbWFpbjsKICNlbmRpZgogICAgICAgICByZWFkb25seSBh
dHRyaWJ1dGUgRE9NU3RyaW5nIFVSTDsKIApAQCAtMTkyLDEwICsxOTMsMTEgQEAKIAogICAgICAg
ICBFbGVtZW50ICAgICAgICAgICAgZWxlbWVudEZyb21Qb2ludChpbiBsb25nIHgsIGluIGxvbmcg
eSk7CiAKKyAgICAgICAgLy8gbm93IGluIEhUTUw1IHNwZWNpZmljYXRpb24KKyAgICAgICAgRE9N
U2VsZWN0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MgdG8gZ2V0U2VsZWN0aW9uIGJlCisJCW1hZGUgdW5pdmVy
c2FsIHRvIGFsbCBiaW5kaW5ncywgdG8gbWF0Y2ggdGhlIEhUTUw1IHNwZWNpZmljYXRpb24uCisK
KyAgICAgICAgKiBkb20vRG9jdW1lbnQuaWRsOiB1cGRhdGVkIHRvIG1hdGNoIEhUTUwgc3BlYyBv
biBkb21haW4gYW5kIGdldFNlbGVjdGlvbgorCiAyMDA5LTA2LTA1ICBGdW1pdG9zaGkgVWthaSAg
PHVrYWlAZ29vZ2xlLmNvbT4KIAogICAgICAgICBSZXZpZXdlZCBieSBEaW1pdHJpIEdsYXprb3Yu
Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>33384</attachid>
            <date>2009-07-23 15:17:55 -0700</date>
            <delta_ts>2010-06-10 18:44:34 -0700</delta_ts>
            <desc>removes JS-specificism around Document.domain; keeps comment on getSelection to avoid it being confused with IE block of properties, above, but makes comment same as is shown further down in file</desc>
            <filename>doc.html5.idl.patch</filename>
            <type>text/plain</type>
            <size>1881</size>
            <attacher name="Luke Kenneth Casson Leighton">lkcl</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvZG9tL0RvY3VtZW50LmlkbAo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJDb3JlL2Rv
bS9Eb2N1bWVudC5pZGwJKHJldmlzaW9uIDQ0NDczKQorKysgV2ViQ29yZS9kb20vRG9jdW1lbnQu
aWRsCSh3b3JraW5nIGNvcHkpCkBAIC0xNTQsMTEgKzE1NCw3IEBACiAKICAgICAgICAgICAgICAg
ICAgYXR0cmlidXRlIFtDb252ZXJ0TnVsbFRvTnVsbFN0cmluZ10gRE9NU3RyaW5nIHRpdGxlOwog
ICAgICAgICByZWFkb25seSBhdHRyaWJ1dGUgRE9NU3RyaW5nIHJlZmVycmVyOw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HJldmlzaW9uIDQ0NDczKQorKysgV2ViQ29yZS9DaGFuZ2VMb2cJ
KHdvcmtpbmcgY29weSkKQEAgLTcsNiArNywxOCBAQAogICAgICAgICAqIHBsYXRmb3JtL3F0L1FX
ZWJQb3B1cC5jcHA6CiAgICAgICAgICogcGxhdGZvcm0vdGV4dC9xdC9UZXh0QnJlYWtJdGVyYXRv
clF0LmNwcDoKIAorMjAwOS0wNy0yMyAgTHVrZSBLZW5uZXRoIENhc3NvbiBMZWlnaHRvbiA8bGtj
bEBsa2NsLm5ldD4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKQorCisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yNzYwMworCisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yNzQzNCNjMyBzdWdn
ZXN0cyB0aGF0IHRoZQorICAgICAgICBkb21haW4gcHJvcGVydHkgYmUgbWFkZSByZWFkLXdyaXRl
IGFuZCB0aGF0IGFjY2VzcyB0byBnZXRTZWxlY3Rpb24gYmUKKyAgICAgICAgbWFkZSB1bml2ZXJz
YWwgdG8gYWxsIGJpbmRpbmdzLCB0byBtYXRjaCB0aGUgSFRNTDUgc3BlY2lmaWNhdGlvbi4KKwor
ICAgICAgICAqIGRvbS9Eb2N1bWVudC5pZGw6IHVwZGF0ZWQgdG8gbWF0Y2ggSFRNTCBzcGVjIG9u
IGRvbWFpbiBhbmQgZ2V0U2VsZWN0aW9uCisKIDIwMDktMDYtMDUgIEZ1bWl0b3NoaSBVa2FpICA8
dWthaUBnb29nbGUuY29tPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERpbWl0cmkgR2xhemtvdi4K
</data>

          </attachment>
      

    </bug>

</bugzilla>