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

Chinese translation of Element.prepend() page #25117

Open
KoltZhang opened this issue Dec 17, 2024 · 2 comments · May be fixed by #25223
Open

Chinese translation of Element.prepend() page #25117

KoltZhang opened this issue Dec 17, 2024 · 2 comments · May be fixed by #25223
Labels
l10n-zh Issues related to Chinese content.

Comments

@KoltZhang
Copy link

MDN URL

https://developer.mozilla.org/zh-CN/docs/Web/API/Element/prepend

与此议题相关的小节或标题?

The question is at the top of the page, about the location of Element.prepend

哪些信息是错误、无用或不完善的?

"Element.prepend 方法可以在父节点的第一个子节点之前插入一系列Node对象或者DOMString对象。"

你期望看到什么?

"Element.prepend() 方法在当前 Element 的第一个子节点之前插入一组 Node 对象或 DOMString 对象。";
The main thing is to replace "父节点" with "当前 Element".

你有什么支持的链接、参考或引用?

Original:
"The Element.prepend() method inserts a set of Node objects or strings before the first child of the Element."

你还想补充什么内容?

This problem only occurs when the page language is Chinese.

MDN metadata

Page report details
@KoltZhang KoltZhang added l10n-zh Issues related to Chinese content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Dec 17, 2024
@yin1999 yin1999 removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Dec 17, 2024
@yin1999
Copy link
Member

yin1999 commented Dec 17, 2024

说“父节点”本身是没问题的,但这里并未说明是将哪个节点作为“父节点”,我认为写成“当前节点”会更好些

@KoltZhang
Copy link
Author

说“父节点”本身是没问题的,但这里的倾向说明了哪个作为节点“父节点”,我认为写成“当前节点”会更好一些 [object HTMLCollection]

是的,修改是很有必有的。
一般意义上讲父节点,默认指定的是调用prepend方法的节点的父节点。
另外,在节点的after()和before()方法中,它是为父节点插入子节点,这里讲“在父节点的子节点插入...”是正确且没有歧义的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Status: To do - Issues
Development

Successfully merging a pull request may close this issue.

2 participants