| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Now screen.width etc. works in the pager too.
|
| |
|
| |
|
| |
|
|
|
|
| |
Respects autofocus.
|
| |
|
|
|
|
| |
toJS is generally more efficient
|
|
|
|
| |
it should have been a function
|
|
|
|
|
|
|
|
|
|
| |
For APIs that cannot be implemented in a privacy-friendly manner.
As a start, I've added accurate screen size queries; getComputedStyle,
getBoundingClientRect, etc. should follow. (We have a harmless
getComputedStyle already, but it's broken.)
Probably, things like JS-based scroll belong in here too, but I'm not
sure yet. (Perhaps autofocus should be reused instead?)
|
| |
|
| |
|
| |
|
|
|
|
| |
doing it manually is too error prone
|
| |
|
|
|
|
|
|
| |
I want to use it in the UA sheet, so the loop won't cut it.
(Also fix a parsing bug that prevented "of" from working.)
|
| |
|
|
|
|
| |
Lets us skip a couple pointless multiplications/divisions during layout.
|
|
|
|
| |
Uses an additional lower-case map for O(1) case-insensitive comparisons.
|
|
|
|
|
|
|
|
|
|
|
| |
Implemented using proprietary selectors -cha-first-node and
-cha-last-node, modeled after -moz-first-node and -moz-last-node.
I think they are compatible.
That does mean this is more limited than w3m's trimming, e.g. it can't
really deal with nesting or empty tags. I think this is fine, as it's
mainly meant for unstyled documents in the first place (which are
unlikely to have e.g. MAIN tags).
|
|
|
|
|
|
|
| |
Instead, just define the actual value over the getter function on the
first use.
Also, avoid accidentally creating the attributes NamedNodeMap on adopt.
|
| |
|
| |
|
| |
|
|
|
|
| |
another case of "the object model was unnecessarily complex"
|
|
|
|
| |
ctx can be HTML even if we take `this'
|
|
|
|
| |
In my defense, it was broken in the spec too.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* remove std/streams use from mime.types; mmap and parse directly
* use mime.types for inline image extensions
* add some jpeg file extensions
Latter came up because I was trying to add a format locally and it
wouldn't recognize it on images from my file system (i.e. by extension).
As a security measure we still do not allow additional extensions for
predefined inline image types.
|
| |
|
|
|
|
| |
only the most basic form; no media queries yet
|
|
|
|
|
| |
This couldn't get into system.nim for technical reasons, but it's still
pretty useful when iterating over non-mutable openArrays.
|
| |
|
|
|
|
| |
one less mystery
|
|
|
|
|
|
|
|
|
|
| |
* add HTMLDocument as alias to Document
* set Image as configurable/writable
So looking closer, HTMLDocument *is* specified, just major browsers
don't follow the spec.
I doubt this incompatibility causes issues, anyway.
|
| |
|
| |
|
|
|
|
|
|
|
| |
It necessarily removes the config.images check from codec access, which
I'm not quite happy about, so I've added a check to the DOM instead.
(TODO: maybe pager should just dynamically grant codec access as a
capability instead? but maybe that's even more error prone...)
|
|
|
|
|
| |
It is documented in chame that parentNode may be nil, and indeed, it is
nil in some cases.
|
| |
|
|
|
|
| |
canceled was not being set, because we jumped out of the loop too early.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was a bit annoying because it triggered the popup warning on
cursorNextLink -> click with form buttons (as the square brackets around
[button] are implemented with ::before/::after.)
Notably, this also removes the visibility check from isClickable.
I suspect there was a good reason why I added it, but I can't remember
why, and it's incompatible with what desktop browsers do on:
<a href="https://asdf.com" style="visibility: hidden">
<div style="visibility: visible">
test
</div>
</div>
So if it's ever added back, then this case should be respected too.
|
| |
|
|
|
|
|
|
|
|
|
| |
wait isn't this exponential
-- apparently not, at least not with the DOM builder.
(however it is if JS builds the DOM out of place. what can you do, at
least it works now.)
|
| |
|
|
|
|
|
|
|
| |
most of it has already been moved to monoucha, and the rest fits better
in other directories.
also, move urimethodmap to config
|