edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Kevin Carhart <kevin@carhart.net>
To: edbrowse-dev@lists.the-brannons.com
Subject: [edbrowse-dev] attributes
Date: Sat, 29 Jun 2019 13:21:50 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.21.1906291245270.225792@carhart.net> (raw)


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


             reply	other threads:[~2019-06-29 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-29 20:21 Kevin Carhart [this message]
2019-06-29 23:08 ` Karl Dahlke
2019-06-30  1:14   ` Kevin Carhart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.21.1906291245270.225792@carhart.net \
    --to=kevin@carhart.net \
    --cc=edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).