Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow slashes (/) in void elements #315

Merged
merged 3 commits into from
Nov 7, 2021
Merged

Disallow slashes (/) in void elements #315

merged 3 commits into from
Nov 7, 2021

Conversation

lambda-fairy
Copy link
Owner

@lambda-fairy lambda-fairy commented Nov 7, 2021

Overview

The following syntax will no longer work:

html! {
    br /
    link rel="stylesheet" href="styles.css" /
}

This should be changed to the following:

html! {
    br;
    link rel="stylesheet" href="styles.css";
}

Rationale

The ; syntax was introduced in #96; the rationale for it can be found there.

Removing support for the older / syntax will simplify the API surface, and allow for the space to be used for other things.

@lambda-fairy lambda-fairy added this to the 1.0 milestone Nov 7, 2021
@lambda-fairy lambda-fairy changed the title Disallow slashes in void elements Disallow slashes (/) in void elements Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant