11ty / 11ty/webc

Matched name slot content should remove `slot` attribute?

Open
#52 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement for-discussion
Dominant language
JavaScript
Stars
1.4k
Forks
46
Avg merge
10m
Merged PRs (30d)
2

Description

When a named slot is matched and preprocessed by WebC, the slot attribute should be removed lest it be processed in the browser as a client side slot.

https://www.11ty.dev/docs/languages/webc/#named-slots

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the named-slots behavior described in the linked WebC documentation, then locate the preprocessing path for matched named slots. Verify how the slot attribute is handled; done means matched slot content no longer retains a slot attribute that the browser could process as a client-side slot.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.