title: I need value from a named node map
body: <p>I am going through an html structure to get a value I need. It appears to be a "NamedNodeMap" and I have gotten as far as this call:</p>
  
  <pre><code>ui.handle.attributes.getNamedItem("data-value")
  </code></pre>
  
  <p>which when printed in chromes console shows this:</p>
  
  <pre><code>data-value="12:00 AM"
      -&gt;"12:00 AM"
  </code></pre>
  
  <p>I need to get the "12:00 AM" as a value, string, anything will work. I just dont know how to get it. .value on the end of my call does not work, i also tried .text and many other things.</p>
  
  <p>Heres what the ui object looks like before i expand handle and attributes:</p>
  
  <p><img src="https://i.stack.imgur.com/utfsq.png" alt="enter image description here"></p>
  
  <p>and then  after:</p>
  
  <p><img src="https://i.stack.imgur.com/WI2gp.png" alt="html markup"></p>
  
  <p>html markup:</p>
  
  <p><img src="https://i.stack.imgur.com/yiVsq.png" alt="enter image description here"></p>