Skip to content

Supporting <noscript> when FACE is in play #1004

Open

Description

@bennypowers

Say I have a set of FACEs

<form>
  <label>B? <b-input mood="saucy"></b-input></label>
  <b-button type="yeet">Bounce!</b-button>
  <b-button>Submit</b-button>
</form>

Currently, I believe that supporting <noscript> essentially requires the page author to include some

<noscript>
  <form>
    <label>B? <input></label>
    <button type="reset">Bounce!</button>
    <button>Submit</button>
  </form>
  <style>
   form:has(+ noscript form) { display: none; }
  </style>
</noscript>

The DSD templates for the b-* elements may or may not contain their built-in counterparts, but for the sake of this discussion, they might as well be totally custom, with contenteditable, or whatever.

I'd like to be able to 'fall back' to native behaviour for a FACE, so that it could participate in a form even with JS turned off. I have no strong opinions about how to accomplish this, it could be a bucket of attrs on the DSD template, or some global atts on the host, or some other solution.

Activity

  1. keithamus commented on Apr 21, 2023

    @keithamus
    Collaborator

    WCCG had their spring F2F in which this was discussed. You can read the full notes of the discussion (#978 (comment)) in which this was discussed, heading entitled "ARIA Mixin & Cross Root ARIA" as well as "ElementInternals/FACE lack of declarative / noscript" - where this issue was opened.

    In the meeting, present members of WCCG reached a consensus to discuss further in breakout sessions. I'd like to call out that #1005 is the tracking issue for that breakout, in which this will likely be discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions