edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [edbrowse-dev] attributes
@ 2019-06-29 20:21 Kevin Carhart
  2019-06-29 23:08 ` Karl Dahlke
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Carhart @ 2019-06-29 20:21 UTC (permalink / raw)
  To: edbrowse-dev


I hope to try out Dominique's bootstrap problem today in quackit.

Here's a separate thing having to do with attributes.
It's great we got maerskline.com loading.  I went on to one of their 
applications, the track-a-container search from the homepage.


10
i1=maeu
11
i1*

There's a problem involving classList.  I tracked this down some dead ends 
and found out that it is coming from a routine in bundle.js called 
validate().

It wants to populate n, using getAttribute('id')

var t = e.parentNode, n =
document.querySelector('#'.concat(e.getAttribute('id'), '_error')), i =
!0;

But we return null, I believe.  And this is by design, isn't it?  I 
noticed that if I pass in id, implicitMember1 is called?  What does the 
implicit member code do?

As you can tell from the above JS, the page code is trying to 
e.getAttribute('id') and then this becomes part of the argument to 
querySelector.  n is supposed to get the resulting element, so when 
'null' is part of the argument to querySelector, there's no resulting 
element and it crashes a little later.

thanks, Kev


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

end of thread, other threads:[~2019-06-30  1:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-29 20:21 [edbrowse-dev] attributes Kevin Carhart
2019-06-29 23:08 ` Karl Dahlke
2019-06-30  1:14   ` Kevin Carhart

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).