<?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>20927</bug_id>
          
          <creation_ts>2013-02-09 01:39:15 +0000</creation_ts>
          <short_desc>&quot;update steps&quot;</short_desc>
          <delta_ts>2013-04-09 18:13:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>URL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82820</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-09 01:39:15 +0000</bug_when>
    <thetext>http://url.spec.whatwg.org/#concept-uu-update

Please invoke the update steps with a &quot;new output value&quot; (the serialisation of /url/, probably).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82874</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-02-10 11:01:45 +0000</bug_when>
    <thetext>You could just forward the object&apos;s url concept. I think that&apos;s going to be the solution long term, so that e.g. fetch does not have to parse a string again (although you will need to serialize it to set the href content attribute).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83072</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-13 00:08:54 +0000</bug_when>
    <thetext>I don&apos;t mind if you send me the absolute url or the parsed url, I just want the value somehow. (If you send me the parsed one, I&apos;ll just serialise it.) I don&apos;t have the value anywhere on my side since the /url/ object doesn&apos;t exist except in the mind of the URLUtils spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83090</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-02-13 07:13:49 +0000</bug_when>
    <thetext>If there&apos;s no object then all kinds of algorithms in the URL Standard will fail. Pretty much all the attributes depend on there being an object they can return or modify bits from.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83115</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-13 19:42:21 +0000</bug_when>
    <thetext>Can&apos;t you maintain the object on your side?

On my side I just have a string, e.g. a content attribute. It seems silly to have the content attribute also have to define that it maintains some object state and so on when it&apos;s really just a string at the end of the day.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83119</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-02-13 20:01:36 +0000</bug_when>
    <thetext>Well, ideally we parse these only once. So you&apos;d pass e.g. a parsed URL to Fetch rather than having Fetch parse it again. 

Given that it&apos;s the object that implements URLUtils that has the associated url, you should be able to just access it without having to do bookkeeping yourself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83125</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-13 22:41:17 +0000</bug_when>
    <thetext>Ok, what would e.g. the &lt;area&gt; element&apos;s requirements look like?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83139</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-02-14 11:54:13 +0000</bug_when>
    <thetext>&lt;area&gt;&apos;s update steps are to set &lt;area&gt;&apos;s href content attribute to the serialization of &lt;area&gt;&apos;s concept-UU-url.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83173</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-15 02:02:12 +0000</bug_when>
    <thetext>I meant the other way around. When does its concept-UU-url come into existence? What should that requirement look like?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83192</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-02-15 11:49:00 +0000</bug_when>
    <thetext>It&apos;s always in existence effectively (because &lt;area&gt; implements URLUtils), but initially null, until initialized through the &quot;set the input&quot; algorithm, at which point it could still be null I realize now if parsing failed. In which case you want to grab input. This happens if someone would set &lt;area&gt;.href to http:test:test.

So &lt;area&gt; would say that on creation you run the &quot;set the input&quot; algorithm if there&apos;s a href value. And when the update steps are run you check url and if it&apos;s null you use concept-UU-input and otherwise you serialize url.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83604</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-23 00:41:04 +0000</bug_when>
    <thetext>Taking so I can take another crack at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85799</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-09 17:45:48 +0000</bug_when>
    <thetext>I really think it would be better if the &quot;update steps&quot; were invoked with a value that just took care of all that, unless there&apos;s some reason that the behaviour should be different for different cases?

What strings would case a parse failure so I can test it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85812</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-09 18:13:18 +0000</bug_when>
    <thetext>Nevermind, I just put all the boilerplate in the HTML spec. See diff in bug 20072.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>