Closed chriscdn closed 3 years ago
Thanks for the report.
When a
<meta>
tag containsitemprop
attr, it's allowed to be placed inside html body.
I suppose this issue could be resolved by updating updateMeta.js
file or leveraging itemref
attr. @Kocal Would you like to resolve it?
Yes I can take a look, I will try to work on it tonight.
PR opened at https://github.com/vuejs/vuepress/pull/2403
I prefered to check over <meta>
parent element instead of checking if itemref
attribute exists, because it seems that <meta itemprop="...">
are also accepted in <head>
(https://stackoverflow.com/a/22415563)
What do you think?
Close it due to vuejs/vuepress#2403 has been merged and released.
Bug report
In this commit a
<meta>
tag is added to the page. This causes VuePress to throw an error since theupdateMetaTags()
function inupdateMeta.js
assumes (correctly) that all<meta>
tags are below<head>
.Steps to reproduce
[ ] I prepared a reproduction repo, here is the reproduction repo:
[x] This issue doesn't need a reproduction repro, here is the steps to reproduce
Download this repository as a ZIP file
upgrade all the dependencies (e.g.,
yarn upgrade --latest
)build (
yarn example:build
)serve the output in
example/.vuepress/dist/
inspect the page and notice the JavaScript error
What is expected?
No JavaScript error.
What is actually happening?