view web_resources/feed-preview.xhtml @ 57:3c97046c2348

Fix non-responsive buttons for managing feed readers In recent Firefox releases the "explicitOriginalTarget" property returns the associated form element instead of the originally clicked button so that the buttons for managing feed readers on the option page no longer worked. Determine the button used to submit the form using the "submitter" property of the new SubmitEvent instead. Add a polyfill for older Firefox releases not yet supporting this.
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Wed, 06 May 2020 13:42:35 +0200
parents 76e23b361e92
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8"/>
<!--
   Copyright (C) 2018 Guido Berhoerster <guido+feed-preview@berhoerster.name>

   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0. If a copy of the MPL was not distributed with this
   file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <link id="default-stylesheet" rel="stylesheet" href=""/>
    <link id="feed-link" rel="alternate" type="" href=""/>
    <title></title>
  </head>
  <body>
    <template id="feed-logo-template">
      <img id="feed-logo" src="" alt=""/>
    </template>
    <template id="entry-template">
      <article>
        <details class="entry">
          <summary>
            <header class="entry-header">
              <p class="entry-date"><time></time></p>
            </header>
          </summary>
          <iframe class="entry-content" srcdoc="" title=""
          sandbox="allow-popups allow-popups-to-escape-sandbox"
          width="800" height="360"></iframe>
        </details>
      </article>
    </template>
    <template id="entry-title-template">
      <h1 class="entry-title"></h1>
    </template>
    <template id="entry-title-linked-template">
      <h1 class="entry-title"><a class="entry-link" href="" title=""></a></h1>
    </template>
    <template id="entry-files-list-template">
      <footer class="entry-files">
        <h2 class="entry-files-title"></h2>
        <ul class="entry-files-list">
        </ul>
      </footer>
    </template>
    <template id="entry-file-template">
      <li class="entry-file"><a class="entry-file-link" href="" title=""></a>
      <span class="entry-file-info"></span></li>
    </template>
    <form id="feed-subscription">
      <fieldset name="main" disabled="disabled">
        <label for="feed-reader-selection"></label><select
        name="feed-reader-selection" id="feed-reader-selection"
        required="required"></select><button type="submit"
        name="subscribe" id="subscribe"></button>
      </fieldset>
    </form>
    <header id="feed-header">
      <h1 id="feed-title"></h1>
      <p id="feed-subtitle"></p>
    </header>
    <p id="no-entries-hint"></p>
  </body>
</html>