Skip to content

<td> in <a href={variable}>{variable}</a> error #958

@miya-spit

Description

@miya-spit

Astro Info

Astro                    v4.2.4
Node                     v20.11.0
System                   Windows (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

Edge

Describe the Bug

I have found a bug in Astro 4.2.7. When placing an tag inside a tag within a

, and using variables for its attributes and enclosed text, the tag is incorrectly positioned outside the
tag. The same issue occurs with and tags.

GFIlEa7bwAA33ly

What's the expected result?

<a> does not go out of <table> and is output correctly.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-guu8qe?file=src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P5: urgentFix build-breaking bugs affecting most users, should be released ASAP (priority)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions