Fix several style issues
This commit is contained in:
parent
c5e688f26c
commit
ffda82170d
@ -285,10 +285,10 @@ window._qutebrowser.webelem = (function() {
|
||||
const frame_elem = call_if_frame(elem,
|
||||
(frame) => serialize_elem(frame.document.activeElement, frame));
|
||||
|
||||
if (frame_elem === null) {
|
||||
return serialize_elem(elem);
|
||||
if (frame_elem !== null) {
|
||||
return frame_elem;
|
||||
}
|
||||
return frame_elem;
|
||||
return serialize_elem(elem);
|
||||
};
|
||||
|
||||
funcs.find_at_pos = (x, y) => {
|
||||
@ -306,10 +306,10 @@ window._qutebrowser.webelem = (function() {
|
||||
y - frame_offset_rect.top), frame);
|
||||
});
|
||||
|
||||
if (frame_elem === null) {
|
||||
return serialize_elem(elem);
|
||||
if (frame_elem !== null) {
|
||||
return frame_elem;
|
||||
}
|
||||
return frame_elem;
|
||||
return serialize_elem(elem);
|
||||
};
|
||||
|
||||
// Function for returning a selection to python (so we can click it)
|
||||
|
@ -1,8 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<!--
|
||||
target: hello.txt
|
||||
-->
|
||||
<!-- target: hello.txt -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
@ -1,13 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<!--
|
||||
target: hello.txt
|
||||
-->
|
||||
<!-- target: hello.txt -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Link wrapped across multiple lines</title>
|
||||
<title>Button link wrapped across multiple lines</title>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 20em;">
|
||||
|
@ -3,7 +3,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hinting inside an iframe</title>
|
||||
<title>Hinting a button inside an iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe style="margin: 50px;" src="/data/hints/html/wrapped_button.html"></iframe>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hinting inside an iframe</title>
|
||||
<title>Hinting an input field inside an iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe style="margin: 50px;" src="/data/hints/input.html"></iframe>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hinting inside an iframe</title>
|
||||
<title>Searching inside an iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe style="margin: 50px;" src="/data/search.html"></iframe>
|
||||
|
Loading…
Reference in New Issue
Block a user