edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] createElement(html)
Date: Thu, 08 Feb 2018 02:34:23 -0500	[thread overview]
Message-ID: <20180108023423.eklhad@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]

I'm still confused by www.oranges.com.
As mentioned earlier, it calls document.createElement with some html, rather than a tag name,
as though it is suppose to run innerHTML.
But I can't find a single web page that says this should happen, not mds, not w3schools, nobody.
I made a little program www.eklhad.net/jg, and under Chrome, "click me" does not appear.
At least Chrome on the tablet.
Yet, I've looked through all their js and they don't replace document.createElement with their own function, as suggested.
Furthermore, I went to jdb and compared that function with the original in the master window.

mw0.createElement === document.createElement
true

They call the standard function with a very nonstandard argument and expect it to work.
I'm just saying I'm confused.
It would be pretty easy to implement,
if argument matches /^</ run innerHTML, else do the usual,
but I'm not going to implement it if that's not what browsers do.
oranges is the only site that I've ever seen this in, so it might be weird.

Karl Dahlke

                 reply	other threads:[~2018-02-08  7:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20180108023423.eklhad@comcast.net \
    --to=eklhad@comcast.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).