<?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>21250</bug_id>
          
          <creation_ts>2013-03-11 17:57:00 +0000</creation_ts>
          <short_desc>&lt;!DOCTYPE HTML&gt; &lt;html&gt;  &lt;head&gt;   &lt;title&gt;Worker example: Stock ticker&lt;/title&gt;   &lt;script&gt;    // TICKER    var symbol = &apos;GOOG&apos;; // default symbol to watch    var ticker = new Worker(&apos;ticker.js&apos;);     //  [...]</short_desc>
          <delta_ts>2013-04-12 23:35:25 +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>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#worker-used-for-background-i/o</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84260</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-03-11 17:57:00 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
Multipage: http://www.whatwg.org/C#worker-used-for-background-i/o
Complete: http://www.whatwg.org/c#worker-used-for-background-i/o

Comment:
&lt;!DOCTYPE HTML&gt; &lt;html&gt;	&lt;head&gt;	 &lt;title&gt;Worker example: Stock ticker&lt;/title&gt;  
&lt;script&gt;    // TICKER	 var symbol = &apos;GOOG&apos;; // default symbol to watch   
var ticker = new Worker(&apos;ticker.js&apos;);	  // SEARCHER	 var searcher = new
Worker(&apos;searcher.js&apos;);	  function search(query) {     
searcher.postMessage(query);	}     // SYMBOL SELECTION UI	function
select(newSymbol) {	 symbol = newSymbol;	  ticker.postMessage(symbol); 
  }   &lt;/script&gt;  &lt;/head&gt;  &lt;body onload=&quot;search(&apos;&apos;)&quot;&gt;   &lt;p&gt;&lt;output
id=&quot;symbol&quot;&gt;&lt;/output&gt; &lt;output id=&quot;value&quot;&gt;&lt;/output&gt;&lt;/p&gt;	 &lt;script&gt;   
ticker.onmessage = function (event) {	   var data = event.data.split(&apos; &apos;);  
   document.getElementById(&apos;symbol&apos;).textContent = data[0];	
document.getElementById(&apos;value&apos;).textContent = data[1];    };	
ticker.postMessage(symbol);   &lt;/script&gt;   &lt;p&gt;&lt;label&gt;Search: &lt;input type=&quot;text&quot;
autofocus oninput=&quot;search(this.value)&quot;&gt;&lt;/label&gt;&lt;/p&gt;   &lt;ul id=&quot;results&quot;&gt;&lt;/ul&gt;  
&lt;script&gt;    searcher.onmessage = function (event) {	 var data =
event.data.split(&apos; &apos;);	    var results = document.getElementById(&apos;results&apos;); 
    while (results.hasChildNodes()) // clear previous results	    
results.removeChild(results.firstChild);      for (var i = 0; i &lt; data.length;
i += 1) {	 // add a list item with a button for each result	 var
li = document.createElement(&apos;li&apos;);	  var button =
document.createElement(&apos;button&apos;);	 button.value = data[i];       
button.type = &apos;button&apos;;        button.onclick = function () {
select(this.value); };	      button.textContent = data[i];	  
li.appendChild(button);        results.appendChild(li);

Posted from: 12.217.57.100
User agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>