<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Nobody knows whats happen?<br>
      <br>
      I tried with <br>
      <br>
      <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="typ">WebKitDOMNodeList</span><span class="pun">*</span><span class="pln"> video </span><span class="pun">=</span><span class="pln"> webkit_dom_document_get_elements_by_tag_name</span><span class="pun">(</span><span class="pln">dom</span><span class="pun">,</span><span class="pln"> </span><span class="str">"*"</span><span class="pun">);</span></code></pre>
      instead<br>
      <br>
      <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="typ">WebKitDOMNodeList</span><span class="pun">*</span><span class="pln"> video </span><span class="pun">=</span><span class="pln"> webkit_dom_element_get_elements_by_tag_name</span><span class="pun">(</span><span class="pln">dom</span><span class="pun">,</span><span class="pln"> </span><span class="str">"*"</span><span class="pun">);</span></code></pre>
      and the output is the same:<br>
      <br>
      <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="pln">tag</span><span class="pun">:</span><span class="pln"> HTML
tag</span><span class="pun">:</span><span class="pln"> HEAD
tag</span><span class="pun">:</span><span class="pln"> BODY</span></code></pre>
      <br>
      <br>
      El 21/11/13 20:25, &Aacute;ngel Luis escribi&oacute;:<br>
    </div>
    <blockquote cite="mid:BLU0-SMTP63261A2644E132D4C19685BBE10@phx.gbl"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <p>I am trying to print name of nodes from DOM with WebKitGTK with
        the following code:</p>
      <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="typ">WebKitDOMDocument</span><span class="pln"> </span><span class="pun">*</span><span class="pln">dom </span><span class="pun">=</span><span class="pln"> webkit_web_view_get_dom_document</span><span class="pun">(</span><span class="pln">WEBKIT_WEB_VIEW</span><span class="pun">(</span><span class="pln">webView</span><span class="pun">));</span><span class="pln">
    </span><span class="typ">WebKitDOMNodeList</span><span class="pun">*</span><span class="pln"> video </span><span class="pun">=</span><span class="pln"> webkit_dom_element_get_elements_by_tag_name</span><span class="pun">(</span><span class="pln">dom</span><span class="pun">,</span><span class="pln"> </span><span class="str">"*"</span><span class="pun">);</span><span class="pln">

    gulong element_count </span><span class="pun">=</span><span class="pln"> webkit_dom_node_list_get_length</span><span class="pun">(</span><span class="pln">video</span><span class="pun">);</span><span class="pln">
    </span><span class="typ">int</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
    </span><span class="kwd">for</span><span class="pln"> </span><span class="pun">(</span><span class="pln">i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> element_count</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln">
        </span><span class="pun">{</span><span class="pln">
        </span><span class="typ">WebKitDOMNode</span><span class="pln"> </span><span class="pun">*</span><span class="pln">element </span><span class="pun">=</span><span class="pln"> webkit_dom_node_list_item</span><span class="pun">(</span><span class="pln">video</span><span class="pun">,</span><span class="pln"> i</span><span class="pun">);</span><span class="pln">
        printf</span><span class="pun">(</span><span class="str">"tag: %s\n"</span><span class="pun">,</span><span class="pln">webkit_dom_node_get_node_name </span><span class="pun">(</span><span class="pln">element</span><span class="pun">));</span><span class="pln">

    </span><span class="pun">}

</span></code></pre>
      <p>And I have the following webpage:</p>
      <code><span class="pun">&lt;!</span><span class="pln">DOCTYPE html</span><span
          class="pun">&gt;</span><span class="pln"><br>
        </span><span class="str">&lt;html&gt;<br>
        </span>&nbsp;&nbsp;&nbsp; <span class="str">&lt;head&gt;</span><span
          class="pln"><br>
        </span><span class="pun">&nbsp;&nbsp;&nbsp; &lt;/</span><span class="pln">head</span><span
          class="pun">&gt;<br>
        </span><span class="pln">&nbsp;&nbsp;&nbsp; </span><span class="str">&lt;body&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="pln"></span><span class="pun">&lt;</span><span
          class="pln">video id</span><span class="pun">=</span><span
          class="str">"video"</span><span class="pln"> autoplay preload</span><span
          class="pun">=</span><span class="str">"none"</span><span
          class="pln"> width</span><span class="pun">=</span><span
          class="str">"320"</span><span class="pln"> height</span><span
          class="pun">=</span><span class="str">"240"</span><span
          class="pun">&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="pln"></span><span
          class="pun">&lt;</span><span class="pln">source src</span><span
          class="pun">=</span><span class="str">"./movie.ogg"</span><span
          class="pln"> type</span><span class="pun">=</span><span
          class="str">"video/ogg"</span><span class="pun">&gt;</span><span
          class="pln"> </span><span class="typ"><br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Your</span><span class="pln"> browser does not
          support the video tag</span><span class="pun">.<br>
          &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="pln"></span><span class="pun">&lt;/</span><span
          class="pln">video</span><span class="pun">&gt;</span><span
          class="pln"><br>
          &nbsp;&nbsp;&nbsp;&nbsp; </span><span class="pun">&nbsp;&nbsp;&nbsp; &lt;</span><span
          class="pln">video id</span><span class="pun">=</span><span
          class="str">"video2"</span><span class="pln"> width</span><span
          class="pun">=</span><span class="str">"320"</span><span
          class="pln"> height</span><span class="pun">=</span><span
          class="str">"240"</span><span class="pln"> autoplay preload</span><span
          class="pun">=</span><span class="str">"none"</span><span
          class="pun">&gt;</span><span class="pln"> <br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="pun">&lt;</span><span
          class="pln">source src</span><span class="pun">=</span><span
          class="str">"./movie.ogg"</span><span class="pln"> type</span><span
          class="pun">=</span><span class="str">"video/ogg"</span><span
          class="pun">&gt;</span><span class="pln"><br>
          &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><span class="typ">Your</span><span
          class="pln"> browser does not support the video tag</span><span
          class="pun">.</span><span class="pln"> </span><span
          class="pun"><br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/</span><span class="pln">video</span><span
          class="pun">&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp; </span><span class="pln"></span><span class="pun">&nbsp;&nbsp;&nbsp;
          &lt;</span><span class="pln">input type</span><span
          class="pun">=</span><span class="str">"hidden"</span><span
          class="pln"> id</span><span class="pun">=</span><span
          class="str">"prueba"</span><span class="pln"> name</span><span
          class="pun">=</span><span class="str">"finish"</span><span
          class="pln"> value</span><span class="pun">=</span><span
          class="str">"false"</span><span class="pun">&gt;</span><br>
        <span class="pun">&nbsp;&nbsp;&nbsp; &lt;/</span><span class="pln">body</span><span
          class="pun">&gt;</span><span class="pln"><br>
        </span><span class="pun">&lt;/</span><span class="pln">html</span><span
          class="pun">&gt;<br>
          <br>
        </span></code>
      <p>And the output of my program is: </p>
      <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="pln">tag</span><span class="pun">:</span><span class="pln"> HTML
tag</span><span class="pun">:</span><span class="pln"> HEAD
tag</span><span class="pun">:</span><span class="pln"> BODY</span></code></pre>
      <p>I don't understand why it output that, the output should be:</p>
      <pre style="" class="lang-c prettyprint prettyprinted"><code><span class="pln">tag</span><span class="pun">:</span><span class="pln"> HTML
tag</span><span class="pun">:</span><span class="pln"> HEAD
tag</span><span class="pun">:</span><span class="pln"> BODY
tag</span><span class="pun">:</span><span class="pln"> VIDEO
tag</span><span class="pun">:</span><span class="pln"> SOURCE
tag</span><span class="pun">:</span><span class="pln"> VIDEO
tag</span><span class="pun">:</span><span class="pln"> SOURCE
tag</span><span class="pun">:</span><span class="pln"> INPUT</span></code></pre>
      <p>Anyone know what's happend?</p>
      <p>Thanks</p>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
webkit-gtk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:webkit-gtk@lists.webkit.org">webkit-gtk@lists.webkit.org</a>
<a class="moz-txt-link-freetext" href="https://lists.webkit.org/mailman/listinfo/webkit-gtk">https://lists.webkit.org/mailman/listinfo/webkit-gtk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>