From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] suggested additions
Date: Mon, 04 Sep 2017 10:12:02 -0400 [thread overview]
Message-ID: <20170804101202.eklhad@comcast.net> (raw)
In-Reply-To: <alpine.LRH.2.03.1709031908440.927@carhart.net>
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
(1) give a CSSStyleDeclaration attributes
Sure.
(2) Give an iframe a contentWindow in addition to a contentDocument
Yes but not as simple as it seems.
The linkage in decorate.c is merely a placeholder until the frame is expanded.
Look for contentDocument in http.c.
Then, I'm not sure what contentWindo means, but I suppose the window of the frame, rather than the document of the frame, check for specifications.
Even that doesn't work with your example js.
doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument
).document
So we're grabbing window.document or document.document, the latter doesn't make any sense.
Also beware, I do some magic with content$Document which is how we expand frames automatically when their objects are referenced.
Do we need to do the same for contentWindow? Probably.
This should probably be its own patch; it's a bit more involved.
(3) Bring back the following definition for Event.
Sure I guess.
(4) Apply the Event definition from (3) to the addEventHandler
Ok.
(5) Implement childNodes.item.
Sure. Probably down in Array.prototype. Then it's part of every childNodes, and every other array, but I don't think that's a problem.
Otherwise you have to make it part of every childNodes, including those in decorate.c.
(6)
Covered by Array.prototype.item.
(7) Following on from Karl's exclusion of @ from the CSS selectors,
Yeah this is ugly but I started it, so you may as well continue it.
I do think regular expressions are more readable / intuitive, and powerful.
Karl Dahlke
next prev parent reply other threads:[~2017-09-04 14:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-04 2:38 Kevin Carhart
2017-09-04 14:12 ` Karl Dahlke [this message]
2017-09-05 1:16 ` Kevin Carhart
2017-09-05 2:27 ` Karl Dahlke
2017-09-04 15:06 ` Karl Dahlke
2017-09-05 1:32 ` Kevin Carhart
2017-09-04 17:10 ` Karl Dahlke
2017-09-05 2:15 ` [Edbrowse-dev] contentWindow Kevin Carhart
[not found] ` <20170804223729.eklhad@comcast.net>
2017-09-05 2:58 ` Kevin Carhart
[not found] ` <20170804232757.eklhad@comcast.net>
2017-09-05 3:57 ` 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=20170804101202.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).