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

Unexpected Rendering output when there exist nested <p> #7939

Closed
ulivz opened this issue Mar 31, 2018 · 1 comment
Closed

Unexpected Rendering output when there exist nested <p> #7939

ulivz opened this issue Mar 31, 2018 · 1 comment

Comments

@ulivz
Copy link
Member

ulivz commented Mar 31, 2018

Version

2.5.16

Reproduction link

https://codepan.net/gist/96d7331dd5ae36e75ac03fad25ab7312

Steps to reproduce

Open this link, you can repro this bug directly.

What is expected?

Should keep the original nested structure.

What is actually happening?

You can find when a <p> is nested in a <p>, the render result will be three parallel <p>.

@ulivz
Copy link
Member Author

ulivz commented Mar 31, 2018

sorry, it's not a bug of Vue, a <p> cannot be nested in <p>, just close it.

https://www.w3.org/TR/html401/struct/text.html#h-9.3.1

@ulivz ulivz closed this as completed Mar 31, 2018
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

No branches or pull requests

1 participant