edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] document.head.querySelector
@ 2017-12-10 10:02 Kevin Carhart
  2017-12-10 15:08 ` Karl Dahlke
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Carhart @ 2017-12-10 10:02 UTC (permalink / raw)
  To: edbrowse-dev



Sorry to write about multiple things concurrently, but I also hit this in 
the xqsuperschool code.  Interesting.. it's expecting document.head.querySelector so 
that it can query for metas by selector syntax.  I don't know why it needs 
to be called on document.head, when metas by definition will only 
be in head.

getConfig: function(name) {
var element;
element = document.head.querySelector("meta[name='action-cable-" + name + "']");
return element != null ? element.getAttribute("content") : void 0;
},

I have been banging my brains on it for a while.  Is there a proper place 
to add functions to document.head?  I tried adding it at the very bottom, after 
document.querySelector, and it wasn't recognizing document.head unless I 
am misinterpreting messages.

Does this need to take place after third.js has run?  No.. it doesn't, 
right?  Otherwise you wouldn't be able to define document.querySelector 
either.

thanks
Kevin


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-22  2:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-10 10:02 [Edbrowse-dev] document.head.querySelector Kevin Carhart
2017-12-10 15:08 ` Karl Dahlke
2017-12-11  9:27   ` Kevin Carhart
     [not found]     ` <20171111101510.eklhad@comcast.net>
2017-12-22  2:23       ` Kevin Carhart
2017-12-22  2:58         ` Karl Dahlke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).