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