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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12667</bug_id>
          
          <creation_ts>2011-05-17 11:00:50 +0000</creation_ts>
          <short_desc>Setting doc.title in an SVG document doesn&apos;t (necessarily) throw</short_desc>
          <delta_ts>2011-09-23 08:09:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#dom-tree-accessors</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>cam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48558</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-05-17 11:00:50 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#dom-tree-accessors

Comment:
Setting doc.title in an SVG document doesn&apos;t (necessarily) throw

Posted from: 157.193.48.31 by ms2ger@gmail.com
User agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.9 (.NET CLR 3.5.30729)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52319</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:00:10 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54430</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-09 04:59:08 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Did Not Understand Request
Change Description: no spec change
Rationale: I don&apos;t understand. Could you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54432</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-08-09 05:16:09 +0000</bug_when>
    <thetext>It&apos;ll throw if the script is in strict mode, but not otherwise.

Does the algorithm here deliberately cover its eyes as to whether the IDL attribute on SVGDocument is readonly or not, just in case we make it writable in the future?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54447</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-08-09 09:08:45 +0000</bug_when>
    <thetext>What Cameron said.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54953</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-14 09:35:10 +0000</bug_when>
    <thetext>Cameron, the problem is they will end up being the same attribute. So it will necessarily have to be writable. Assuming of course we go ahead with unifying all Document objects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55005</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-08-14 22:49:09 +0000</bug_when>
    <thetext>Ah, yes.  I realise then that we cannot have

  interface Document { ... };
  interface HTMLDocument { attribute DOMString title; ... };
  interface SVGDocument { readonly atribute DOMString title; ... };
  Document implements HTMLDocument;
  Document implements SVGDocument;

due to the two title attributes.  If we are indeed going the route of all Document objects implement all XXXDocument interfaces as above, then we should do one of the following:

a. Drop title from SVGDocument when we come to expressing its interfaces in Web
   IDL, and assume that all SVGDocument objects are also HTMLDocuments

b. Define in Web IDL that two attributes on mixin interfaces with the same name
   and type like this is allowed, as long as they&apos;re &quot;the same&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55015</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-15 03:57:04 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The HTML spec intentionally defers to the SVG spec in the case where the SVG doc.title is to reign. Once SVG is updated so that SVGDocument is always implemented in SVG UAs, its doc.title will presumable similarly defer back to HTML in cases where the SVG one doesn&apos;t apply. That way both specs can co-exist without the other having to be updated when either one changes.

Both interfaces need to define it, since there are HTML UAs that aren&apos;t SVG UAs and SVG UAs that aren&apos;t HTML UAs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55051</commentid>
    <comment_count>8</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-08-15 07:40:54 +0000</bug_when>
    <thetext>The spec states:

If the root element is an svg element in the &quot;http://www.w3.org/2000/svg&quot; namespace, and the user agent supports SVG, then the setter must defer to the setter for the IDL attribute of the same name on the SVGDocument interface (if it is readonly, then this will raise an exception). Stop the algorithm here. [SVG]

The parenthetical is factually incorrect. Please fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55650</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-23 05:00:20 +0000</bug_when>
    <thetext>What should it say instead? Doesn&apos;t setting a readonly property throw any more?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55675</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-08-23 09:02:37 +0000</bug_when>
    <thetext>It doesn&apos;t throw in non-strict mode. It throws in strict mode. IMHO the parenthesis can be removed altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56259</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-04 01:26:34 +0000</bug_when>
    <thetext>Ok, I&apos;ll remove the parenthetical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57193</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-22 22:30:13 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with comment 10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57194</commentid>
    <comment_count>13</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-22 22:31:57 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6563.
Check-in comment: accuracy
http://html5.org/tools/web-apps-tracker?from=6562&amp;to=6563</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57221</commentid>
    <comment_count>14</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-09-23 08:09:35 +0000</bug_when>
    <thetext>Thank you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>